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

Color Methods

The Color type exposes the following members.

Methods

Name Description
Public method ConvertColorSpace

Converts color value to another color space.

Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method Static member FromAcmyk

Returns CmykColor class instance constructed from all 5 channels (alpha, cyan, magenta, yellow, and black).

Public method Static member FromAcmyk32

Returns CmykColor class instance constructed from all 5 channels (alpha, cyan, magenta, yellow, and black).

Public method Static member FromAGrayScale

Returns GrayScaleColor class instance constructed from given luminosity and alpha channel values.

Public method Static member FromAGrayScale32 Overloaded.

Returns GrayScaleColor class instance.

Public method Static member FromAGrayScale64

Returns GrayScaleColor class instance constructed from numeric 64-bit representation of grayscale value with alpha channel.

Public method Static member FromArgb

Returns RgbColor class instance constructed from all 4 channels (alpha, red, green, and blue).

Public method Static member FromArgb32 Overloaded.

Returns RgbColor class instance.

Public method Static member FromArgb64

Returns RgbColor class instance constructed from numeric 64-bit representation of RGB value with alpha channel.

Public method Static member FromCmyk

Returns CmykColor class instance constructed from all 4 color channels (cyan, magenta, yellow, and black).

Public method Static member FromCmyk32 Overloaded.

Returns CmykColor class instance.

Public method Static member FromCmyk64

Returns CmykColor class instance constructed from numeric 32-bit representation of CMYK value without alpha channel.

Public method Static member FromGdiplusColor

Returns RgbColor class instance constructed from System.Drawing.Color value.

Public method Static member FromGrayScale

Returns GrayScaleColor constructed from specified luminosity level.

Public method Static member FromGrayScale32

Returns GrayScaleColor constructed from specified luminosity level.

Public method Static member FromHsl

Returns RgbColor class instance constructed from hue, saturation, and lightness parameters.

Public method Static member FromRgb

Returns RgbColor class instance constructed from all 3 color channels (red, green, and blue).

Public method Static member FromRgb32

Returns RgbColor class instance constructed from all 3 color channels (red, green, and blue).

Public method GetChannel Overloaded.

Gets value stored in specified channel of this color.

Public method GetChannel32 Overloaded.

Gets extended (16-bit) value stored in specified channel of this color.

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

Returns a byte array that contains all channels of the color (8 bits per channel).

Public method ToArray32

Returns an integer numbers array that contains all channels of the color (16 bits per channel).

Public method ToGdiplusColor

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

Public method ToInt32

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

Public method ToInt64

Returns extended (16 bit per channel) numeric representation of the Color.

Public method ToString (Inherited from Object.)

Operators

Name Description
Public operator Static member Implicit Overloaded.

Casts color data format.

See Also

Reference