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

GrayScaleColor Members

The GrayScaleColor type exposes the following members.

Constructors

Name Description
Public method GrayScaleColor

Creates empty GrayScaleColor instance. All channels are initialized with zeros, therefore this color will be represent absolutely black and transparent grayscale value.

Methods

Name Description
Public method Clone

Creates a full copy of this GrayScaleColor object.

Public method ConvertColorSpace

Converts color value to another color space.

(Inherited from Color.)
Public method Equals

Compares this GrayScaleColor with specified object.

(Overrides Object.Equals(Object).)
Protected method Finalize (Inherited from Object.)
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

Returns a hash code for this GrayScaleColor class.

(Overrides Object.GetHashCode().)
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).

(Inherited from Color.)
Public method ToArray32

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

(Inherited from Color.)
Public method ToGdiplusColor

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

(Overrides Color.ToGdiplusColor().)
Public method ToInt32

Returns non-extended (8 bit per channel) numeric representation of this GrayScaleColor.

(Overrides Color.ToInt32().)
Public method ToInt64

Returns extended (16 bit per channel) numeric representation of this GrayScaleColor.

(Overrides Color.ToInt64().)
Public method ToString

Returns a string representation of this GrayScaleColor.

(Overrides Object.ToString().)

Operators

Name Description
Public operator Static member Implicit Overloaded.

Casts GrayScale color data format.

Properties

Name Description
Public property A

Returns 8-bit alpha channel value (color opacity).

(Overrides Color.A.)
Public property A32

Returns 16-bit (extended) alpha channel value (color opacity).

(Overrides Color.A32.)
Public property ChannelCount

Returns number of channels available in this color.

(Overrides Color.ChannelCount.)
Public property ColorSpace

Returns a color space of the color.

(Overrides Color.ColorSpace.)
Public property Gray

Returns 8-bit luminosity channel value.

Public property Gray32

Returns 16-bit luminosity channel value.

See Also

Reference