GetBitsPerPixel

#include “BIADVPRN.H”

 

DWORD  GetResourceDLLName(DEVMODE*  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

DEVMODE*

pDevMode

Pointer to the DEVMODE structure.

Return values

Color depth in pixels (DWORD number).

Requirements

Header :     Declared in BiAdvPrn.h; include BiAdvPrn.h.

Library :    Use BiAdvPrn.lib.

DLLs :       BiAdvPrn.dll.