ColorPalette structure (gdipluspixelformats.h)

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[1]

Type: ARGB[1]

Array of ARGB colors.

Requirements

Requirement Value
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