Microsoft DirectX 9.0 |
The CheckPaletteHeader method validates the palette entries in a VIDEOINFO structure.
Syntax
BOOL CheckPaletteHeader(
const VIDEOINFO *pInput
);
Parameters
pInput
Pointer to a VIDEOINFO structure.
Return Value
Returns TRUE if the palette entries are valid, or FALSE otherwise.
Remarks
If the image format is not palettized, the method verifies that biClrUsed equals zero. Otherwise, the method verifies that the biCompression flag is BI_RGB; biClrImportant is not greater than biClrUsed; and the number of palette entries does not exceed the maximum, given the color depth.
See Also