有没有getpixel的函数?或者有没有方便的类处理bmp文件?

解决方案 »

  1.   

    BitBlt到一个内存DC,然后GetPixel
      

  2.   

    CDC::GetPixel
    This method retrieves the RGB color value of the pixel at the point specified by x and y.COLORREF GetPixel(
    int x,
    int y )
    const;COLORREF GetPixel(
    POINT point )
    const; 
      

  3.   

    楼上那个不行吧,显存是直接访问不来的。lanstar200的也许管用
      

  4.   

    要么利用createDIBSection变到dib来得到