Microsoft DirectX 9.0 |
The MakePalette method creates a logical palette from the color table in a video format.
Syntax
HPALETTE MakePalette(
const VIDEOINFOHEADER *pVideoInfo,
LPSTR szDevice
);
Parameters
pVideoInfo
Pointer to a VIDEOINFOHEADER structure that contains the color table.
szDevice
Pointer to a string that contains the name of the display device, as returned by the GDI EnumDisplayDevices function. To use the main display device, set this parameter to NULL.
Return Value
If successful, returns a handle to the palette. Otherwise, returns NULL.
See Also