ColorPalette Members

The ColorPalette type exposes the following members.

Constructors

Name Description
Public method ColorPalette Overloaded.

Initializes a new instance of the ColorPalette class.

Methods

Name Description
Public method Clone

Returns a full copy of this ColorPalette instance.

Public method Static member Create Overloaded.

Returns a new ColorPalette containing colors generated from a given bitmap.

Public method Dispose

Releases all resources used by this ColorPalette.

Public method Equals

Tests whether the specified object is a ColorPalette instance and is equivalent to this ColorPalette.

(Overrides Object.Equals(Object).)
Protected method Finalize (Inherited from Object.)
Public method FindNearestIndex

Returns an index of the color in this palette closest to a given one.

Public method GetEnumerator

Returns an enumerator for the entire ColorPalette.

Public method GetEnumeratorBase

Returns an enumerator for the entire ColorPalette.

Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method SetKeyColor Overloaded.

Makes a palette entry transparent.

Public method ToGdiPlusColorPalette

Gets the System.Drawing.Imaging.ColorPalette containing the same colors as this ColorPalette does.

Public method ToString (Inherited from Object.)

Operators

Name Description
Public operator Static member Implicit Implicit Overloaded.

Properties

Name Description
Public property Count

Returns a number of colors in the palette.

Public property HasAlpha

Gets a value indicating whether this palette support transparency.

Public property Item

Gets or sets a palette entry at the specified index.

Public property Type

Gets a value indicating whether this palette is predefined or custom.

See Also

Reference