Microsoft DirectX 8.1 (C++)

CImagePalette::MakePalette

Retrieves the color palette from the specified video image.

Syntax

HPALETTE MakePalette(
    const VIDEOINFOHEADER *pVideoInfo,
    LPSTR szDevice
);

Parameters

pVideoInfo

Pointer to the container for the palette colors required.

szDevice

Pointer to a string that contains the name of the destination device. If omitted, this parameter defaults to the main device.

Return Value

Returns a handle to the new palette (NULL if it fails).

See Also