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

Color.Implicit Operator

Casts this Aurigma.GraphicsMill.Color class instance to 32-bit integer number.

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

Syntax

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

Parameters

obj

Type: Aurigma.GraphicsMill.Color

Aurigma.GraphicsMill.Color class instance to cast.

Return Value

Numeric representation of the color. Note, 32-bit integer value can contain maximum 4 non-extended (8-bit) channels. So if you cast CMYK value, alpha channel (5th channel in ACMYK quintuple) will be truncated. If you need to get all channels, use ToArray() method.

See Also

Reference