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

RgbColor.Implicit Operator

Casts this RgbColor to GrayScaleColor automatically converting it to grayscale.

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

Syntax

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

Parameters

obj

Type: Aurigma.GraphicsMill.RgbColor

RgbColor class instance to cast.

Return Value

Converted GrayScaleColor class instance.

Remarks

Note, no color management is applied in this case and colors may be reproduced inaccurately.

See Also

Reference