ColorPalette class

ColorPalette class

Defines an array of colors that make up a color palette. The colors are 32-bit ARGB colors. Not inheritable.

The ColorPalette type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the ColorPalette class.
initInitializes a new instance of the ColorPalette class and IsCompactPalette is false.
initInitializes a new instance of the ColorPalette class.
initInitializes a new instance of the ColorPalette class and IsCompactPalette is false.

Properties

PropertyDescription
entries_countGets the entries count.
argb_32_entriesGets an array of 32-bit ARGB structures.
entriesGets an array of Color structures.
is_compact_paletteGets or sets a value indicating whether compact palette is used.

Methods

MethodDescription
copy_paletteCopies the palette.
copy_paletteCopies the palette.
get_nearest_color_indexGets the index of the nearest color.
get_nearest_color_indexGets the index of the nearest color.
get_argb_32_colorGets the 32-bit ARGB palette color by index.
get_colorGets the palette color by index.

See Also