DrawDibChangePalette function (vfw.h)

The DrawDibChangePalette function sets the palette entries used for drawing DIBs.

Syntax

BOOL VFWAPI DrawDibChangePalette(
  HDRAWDIB       hdd,
  int            iStart,
  int            iLen,
  LPPALETTEENTRY lppe
);

Parameters

hdd

Handle to a DrawDib DC.

iStart

Starting palette entry number.

iLen

Number of palette entries.

lppe

Pointer to an array of palette entries.

Return value

Returns TRUE if successful or FALSE otherwise.

Remarks

This function changes the physical palette only if the current DrawDib palette is realized by calling the DrawDibRealize function.

If the color table is not changed, the next call to the DrawDibDraw function that does not specify DDF_SAME_DRAW calls the DrawDibBegin function implicitly.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header vfw.h
Library Vfw32.lib
DLL Msvfw32.dll

See also

DrawDib Functions