Remember that the red and blue channels are 5 bits and the green channel is 6 bits. To convert these values to 8-bit components (for 24-bit or 32-bit RGB), you must left-shift the ...
msdn.microsoft.com