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

GrayScaleColor.Implicit Operator

Casts this Aurigma.GraphicsMill.GrayScaleColor class instance to System.Drawing.Color value.

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

Syntax

Visual Basic
Public Shared Widening Operator CType ( _
	obj As GrayScaleColor _
) As Color
C#
public static implicit operator Color (
	GrayScaleColor obj
)

Parameters

obj

Type: Aurigma.GraphicsMill.GrayScaleColor

Aurigma.GraphicsMill.GrayScaleColor class instance to cast.

Return Value

Color value casted to System.Drawing.Color.

Remarks

This Aurigma.GraphicsMill.GrayScaleColor is always automatically converted from grayscale to RGB color space using ConvertColorSpace(ColorSpace) method. Note, no color management is applied in this case and colors may be reproduced inaccurately.

See Also

Reference