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 64-bit long number.

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

Syntax

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

Parameters

obj

Type: Aurigma.GraphicsMill.Color

Aurigma.GraphicsMill.Color class instance to cast.

Return Value

Numeric representation of the color. Note, 64-bit integer value can contain maximum 4 extended (16-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 ToArray32() method.

See Also

Reference