Color Members

The Color type exposes the following members.

Methods

Name Description
Public method Convert

Converts this color to the specified pixel format.

Public method Dispose

Releases all resources used by this Color.

Public method Equals

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

(Overrides Object.Equals(Object).)
Protected method Finalize (Overrides Object.Finalize().)
Public method Static member FromGdiPlusColor

Get the RgbColor constructed from a System.Drawing.Color value.

Public method GetCopy
Public method GetHashCode

Returns a hash code for this Color.

(Overrides Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ScaleAlpha

Scales the alpha channel.

Public method ToGdiPlusColor

Gets the System.Drawing.Color containing the same color value as this Color does.

Public method ToInt32

Gets a non-extended (8 bit per channel) numeric representation of the Color.

Public method ToString (Inherited from Object.)

Operators

Name Description
Public operator Static member Equality

Tests whether two specified Color instances are equivalent.

Public operator Static member Implicit Overloaded.
Public operator Static member Inequality

Tests whether two specified Color instances are different.

Properties

Name Description
Public property ChannelCount

Gets a number of channels available in this color.

Public property ColorSpace

Gets a color space of the color.

Public property IsTransparent

Gets a value indicating whether this color is transparent.

Public property Item

Gets a value stored in specified channel of this color.

Public property PixelFormat

Gets a pixel format of this color.

Public property Profile

Gets or sets a color profile associated with this color.

See Also

Reference