Microsoft DirectX 8.1 (C++) |
Retrieves a set of color element bitmasks for the supplied VIDEOINFO structure.
Syntax
const DWORD *GetBitMasks(
const VIDEOINFO *pVideoInfo
);
Parameters
pVideoInfo
Pointer to the input VIDEOINFO structure format.
Return Value
No return value.
Remarks
This member function should be called only with RGB formats. If the RGB format has a bit depth of 16/32 bits per pixel, it will return the bitmasks for the individual red, green, and blue color elements (for example, RGB565 is 0xF800, 0x07E0, and 0x001F). For RGB24, this will return 0xFF0000, 0xFF00, and 0xFF. For palettized formats, this will return all zeros.
See Also