Get RGB from particular pixel in bitmap 
Author Message
 Get RGB from particular pixel in bitmap

Does anyone know how to get the RGB color of a certain pixel (x, y) from a
bitmap or CBitmap?


Fri, 08 Jun 2001 03:00:00 GMT  
 Get RGB from particular pixel in bitmap
Hi,


Quote:

>Does anyone know how to get the RGB color of a certain pixel (x, y) from a
>bitmap or CBitmap?

Look into CreateDIBSection and related APIs. Or look into GetBitmapBits.

HTH!
Bye!

Gautam N. Lad

- Website: http://www.geocities.com/SiliconValley/Heights/1107
- ICQ #7196672



Fri, 08 Jun 2001 03:00:00 GMT  
 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)


Sat, 09 Jun 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Getting the RGB data as an array out of Bitmap

2. PRINT THE rgb VALUES OF A PIXEL????

3. how to get RGB pixels from CPicture ?

4. get RGB pixels from IPicture

5. Set bitmap in RGB ???

6. RGB in bitmap

7. RGB value of 24bit bitmap

8. Set Bitmap in RGB ???

9. CBitmap: Want to display RGB bitmap, but can only adress G and B

10. RGB Bitmap

11. Set bitmap in RGB ???

12. How can i create a device independent bitmap from a rgb buffe

 

 
Powered by phpBB® Forum Software