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

ColorPalette.Export Method

Exports the palette into array of RgbColor values.

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

Syntax

Visual Basic
Public Function Export As RgbColor()
C#
public RgbColor[] Export()

Return Value

Array of RgbColor values.

Examples

Visual Basic
Dim colors As Aurigma.GraphicsMill.RgbColor() = palette.Export()

For Each color As Aurigma.GraphicsMill.RgbColor In colors
    Console.WriteLine("A: " & color.A & " R: " & color.R & " G: " & color.G & " B: " & color.B)
Next
C#
Aurigma.GraphicsMill.RgbColor[] colors = palette.Export();

foreach (Aurigma.GraphicsMill.RgbColor color in colors)
{
    Console.WriteLine("A: " + color.A + " R: " + color.R + " G: " + color.G + " B: " + color.B);
}

See Also

Reference