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

ColorPalette Methods

The ColorPalette type exposes the following members.

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.

See Also

Reference