GetBitsPerPixel

Returns the value of the color depth in pixels.

 If the Color Depth is BITS_1, the return value is 1

 If the Color Depth is BITS_8, the return value is 8

 If the Color Depth is BITS_8GRAY, the return value is 8

 If the Color Depth is BITS_24, return value is 24

 

GetBitsPerPixel(pDevMode As Long)As Long

 

Input value: pDevMode    - handle to the BlackIceDEVMODE structure.

Return value            - Color depth in pixels (Long)