
Get RGB from particular pixel in bitmap
If you select it into a DC GetPixel() will return a COLORREF.
Otherwise GetBitmapBits will get you a pointer to an array of pixels
that you could index into, then convert what you find there to RGB.
On Mon, 21 Dec 1998 11:08:37 -0800, "Mark Graham"
Quote:
>Does anyone know how to get the RGB color of a certain pixel (x, y) from a
>bitmap or CBitmap?
Don Grasberger
(remove --- from address to e-mail)