GetBitsPerPixel

Description         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

Syntax                 RetVal = [BIAdvPrn.]GetResourceDLLName  pDevMode

Returns               RetVal                    DWORD         Color depth in pixels (DWORD number).

Remarks             pDevMode             DEVMODE*  Pointer to the DEVMODE structure.

See Also