Sorry, for not posting question in details.
I have developed application in VB, which reads color values on screen using getpixel api, so whenever I use this api, I get different color values depending upon display properties set on my computer. If I change color quality from 32 bit(default where my application works) to 16 bit or 256 bit color value changes. To solve this problem, I want a function to convert 32bit color value to 16bit value.