Subj : Re: How to read a pixel from a DIB? To : borland.public.cpp.borlandcpp From : Bruce Salzman Date : Wed Oct 20 2004 11:39 am > > That's the way I will use, only lazzines before coding. I have to > convert > X,Y coordinates into a linear coordinate (hey that's so hard!!! > :-) ), also > what about for non 24 bits bitmaps. In 16 bits bitmaps I will have > RGB in 5 > bits, in 8 bits I will have a palette index, and in 4 bits (old 16 > colored > bitmaps) something similar. > That's why using GetPixel() is the easiest way. It will return the pixel color no matter what format the DIB is in. Regards, Bruce .