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

Color.ToArray32 Method

Returns an integer numbers array that contains all channels of the color (16 bits per channel).

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

Syntax

Visual Basic
Public Function ToArray32 As Integer()
C#
public int[] ToArray32()

Return Value

Array that contains channels of the color.

Remarks

The order of channels is the same as word order in numeric representation of the color. The last item always contains alpha channel. Therefore the order is a following (from first array item to last):

  • RGBblue, green, red, alpha;
  • CMYKblack, yellow, magenta, cyan, alpha;
  • Grayscaleintensity level, alpha;

Also, you can use non-extended version of this method, i.e. ToArray().

Note

Although the array contains 32-bit values, only low 16 bits are meaningful. High 16 bits are always initialized with zeros.

See Also

Reference