Microsoft DirectX 8.1 (C++) |
The ContainsPalette function determines whether a specified VIDEOINFOHEADER structure contains a palette.
Syntax
BOOL ContainsPalette(
const VIDEOINFOHEADER *pVideoInfo
);
Parameters
pVideoInfo
Pointer to a VIDEOINFOHEADER structure.
Return Value
Returns TRUE if the bitdepth is 8 or less (bmiHeader.biBitCount), or the number of color indexes is more than zero (bmiHeader.biClrUsed). Returns FALSE otherwise.
Requirements
Header: Declared in Wxutil.h; include Streams.h.
Library: Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also