GetBitsPerPixel

#include “BlackIceDEVMODE.h”

 

DWORD        GetResourceDLLName(BlackIceDEVMODE* pDevMode);

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

Parameters

BlackIceDEVMODE* pDevMode            - pointer to the BlackIceDEVMODE structure

Return value

Color depth in pixels (DWORD number).

Programming Notes

None

Code Example

None