CImagePalette::MakePalette
Microsoft DirectShow 9.0 |
CImagePalette::MakePalette
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.
Requirements
** Header:** Declared in Winutil.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also