How can I tell if pixel 3x9 on my bitmap (which is loaded into a HBITMAP var) is the color RGB(0,10,250)?
I have tried to use GetPixel() but that only reads the color of a pixel that is currently printed on the screen.
Please help!
Printable View
How can I tell if pixel 3x9 on my bitmap (which is loaded into a HBITMAP var) is the color RGB(0,10,250)?
I have tried to use GetPixel() but that only reads the color of a pixel that is currently printed on the screen.
Please help!
GetPixel() does not get pixels on the screen, it gets pixels that are on a device context, which may or may not be drawn to the screen (yes I am a smart arse). With just that, you can draw to the dc, GetPixel(), then clear the dc again.
But that would be silly, use GetBitmapBits().