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

GrayScaleColor Class

This class represents grayscale color value.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)


Visual Basic
Public Class GrayScaleColor _
	Inherits Color
public class GrayScaleColor : Color


To get access to luminosity component use Gray property. Alpha channel is available through A property. Also there are extended versions of these properties (that returns 16-bit version of the component): Gray32, and A32.

Also you can get components by index using GetChannel(Int32) method.

This class implements cast operator for other color types as well as for System.Drawing.Color. Note, when you convert colors, no color management is applied. To convert colors with color management, use ConvertColor(Color, ColorProfile) method of PixelFormatConverter class.

Inheritance Hierarchy

L Aurigma.GraphicsMill.Color
L Aurigma.GraphicsMill.GrayScaleColor

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also