ColorPalette structure

The ColorPalette structure defines an array of colors that make up a color palette. The colors are 32-bit ARGB colors.

Syntax

struct ColorPalette {
  UINT Flags;
  UINT Count;
  ARGB Entries[1];
};

Members

Flags

Type: UINT

Combination of flags from the PaletteFlags enumeration.

Count

Type: UINT

Number of elements in the Entries array.

Entries

Type: ARGB[1]

Array of ARGB colors.

Requirements

   
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header gdipluspixelformats.h (include Gdiplus.h)

See Also

Color

Image::GetPalette

Image::SetPalette

Types of Bitmaps