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

GrayScaleColor Methods

The GrayScaleColor type exposes the following members.

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.

See Also

Reference