This documentation is for the old version. Go to the latest Graphics Mill docs

ColorPalette Members

The ColorPalette type exposes the following members.

Constructors

Name Description
Public method ColorPalette Overloaded.

Creates and initializes new ColorPalette class instance.

Creates and initializes new ColorPalette class instance.

Methods

Name Description
Public method {dtor}

Enables using delete operator in C++ applications. It is strongly not recommended to use it directly.

Public method Clone

Creates a full copy of the palette.

Public method Dispose

Releases all resources used by this ColorPalette.

(Overrides LockableObject.Dispose().)
Public method Equals (Inherited from Object.)
Public method Export

Exports the palette into array of RgbColor values.

Public method FindNearestIndex

Searches index of the color closest to given one.

Public method GetEnumerator

Returns an enumerator for the palette entries allowing it to be used in foreach blocks.

Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Import

Imports the palette from array of RgbColor values.

Public method Lock

Locks the object.

(Inherited from LockableObject.)
Protected method MemberwiseClone (Inherited from Object.)
Public method SetColorKey Overloaded.

Makes palette entry.

Public method ToGdiplusColorPalette

Converts current palette to System.Drawing.Imaging.ColorPalette class which can be used in native .NET drawing classes.

Public method ToString (Inherited from Object.)
Public method Unlock

Unlocks the object previously locked with method Lock().

(Inherited from LockableObject.)

Operators

Name Description
Public operator Static member Implicit Overloaded.

Casts this Aurigma.GraphicsMill.ColorPalette class instance to System.Drawing.Imaging.ColorPalette or vice versa.

Properties

Name Description
Public property Count

Returns a number of colors in the palette.

Public property HasAlpha

Indicates if palette support transparency.

Public property IsDisposed (Inherited from LockableObject.)
Public property Item

Gets/sets palette entry by index.

Public property Locked

Indicates if the object has been locked.

(Inherited from LockableObject.)
Public property Timeout

Gets/sets value specifying maximum time for which object can be locked.

(Inherited from LockableObject.)
Public property Type

Indicates how palette was created - either as some predefined palette or custom one.

See Also

Reference