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
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the ColorPalette class. |
| init | Initializes a new instance of the ColorPalette class and IsCompactPalette is false. |
| init | Initializes a new instance of the ColorPalette class. |
| init | Initializes a new instance of the ColorPalette class and IsCompactPalette is false. |
Properties
| Property | Description |
|---|---|
| entries_count | Gets the entries count. |
| argb_32_entries | Gets an array of 32-bit ARGB structures. |
| entries | Gets an array of Color structures. |
| is_compact_palette | Gets or sets a value indicating whether compact palette is used. |
Methods
| Method | Description |
|---|---|
| copy_palette | Copies the palette. |
| copy_palette | Copies the palette. |
| get_nearest_color_index | Gets the index of the nearest color. |
| get_nearest_color_index | Gets the index of the nearest color. |
| get_argb_32_color | Gets the 32-bit ARGB palette color by index. |
| get_color | Gets the palette color by index. |
See Also
- module
aspose.cad - class
Color - class
ColorPalette - class
IColorPalette