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

CmykColor.Implicit Operator

Casts this CmykColor to Int32 containing numerical representation of the color.

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

Syntax

Visual Basic
Public Shared Widening Operator CType ( _
	obj As CmykColor _
) As Integer
C#
public static implicit operator int (
	CmykColor obj
)

Parameters

obj

Type: Aurigma.GraphicsMill.CmykColor

CmykColor class instance to cast.

Return Value

Int32 containing numerical representation of the color.

Remarks

CMYK color contains more channels than can fit to Int32 value. It has 5 channels (alpha, cyan, magenta, yellow, and black), but a 32-bit number can hold only 4 extended channels. That's why alpha channel is truncated and you get only CMYK quad instead of ACMYK quintuple.

See Also

Reference