Table of Contents

Class ColorPalette

Namespace
Aspose.CAD
Assembly
Aspose.CAD.dll

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

public sealed class ColorPalette : IColorPalette
Inheritance
ColorPalette
Implements
Inherited Members

Constructors

ColorPalette(Color[])

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

ColorPalette(Color[], bool)

Initializes a new instance of the ColorPalette class.

ColorPalette(int[])

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

ColorPalette(int[], bool)

Initializes a new instance of the ColorPalette class.

Properties

Argb32Entries

Gets an array of 32-bit ARGB structures.

Entries

Gets an array of Color structures.

EntriesCount

Gets the entries count.

IsCompactPalette

Gets or sets a value indicating whether compact palette is used.

Methods

CopyPalette(IColorPalette)

Copies the palette.

CopyPalette(IColorPalette, bool)

Copies the palette.

GetArgb32Color(int)

Gets the 32-bit ARGB palette color by index.

GetColor(int)

Gets the palette color by index.

GetNearestColorIndex(Color)

Gets the index of the nearest color.

GetNearestColorIndex(int)

Gets the index of the nearest color.