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

Color.ToArray Method

Returns a byte array that contains all channels of the color (8 bits per channel).

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

Syntax

Visual Basic
Public Function ToArray As Byte()
C#
public byte[] ToArray()

Return Value

Array that contains channels of the color.

Remarks

The order of channels is the same as byte 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 extended version of this method, i.e. ToArray32().

See Also

Reference