How to get exact RGB values for 24-bit image in .NET Compact Framework? -


I have a 24 bit BMP image, but when I load it a bitmap object on my Pocket PC and getPixel, So this returns gives me a slightly wrong RGB value I think it changes it up to 16 bit on the fly. After using lockbits and working directly with bitmap data, I get the same result. Is there a way to get the exact RGB value in the net compact framework for a given 24-bit BMP pixel?

Thanks in advance.

Comments