DrawDibSetPalette

The DrawDibSetPalette function sets the palette used for drawing DIBs.

BOOL DrawDibSetPalette(
  HDRAWDIB hdd,  
  HPALETTE hpal  
);

Parameters

hdd

Handle to a DrawDib DC.

hpal

Handle to the palette. Specify NULL to use the default palette.

Return Values

Returns TRUE if successful or FALSE otherwise.

Requirements

**  Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Vfw.h.
**  Library:** Use Vfw32.lib.

See Also

DrawDib, DrawDib Functions