Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.
This documentation is for the old version. Go to the latest Graphics Mill docs

ColorPalette.Item Property

Gets/sets palette entry by index.

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

Syntax

Visual Basic
Public Default Property Item ( _
	itemIndex As Integer _
) As RgbColor
C#
public RgbColor this[
	int itemIndex
] { get; set; }

Parameters

itemIndex

Type: System.Int32

Entry index you want to retrieve. It should vary in range [0, entries count - 1].

Property Value

Color value stored in the palette by given index.

Examples

Visual Basic
For i As Integer = 0 To palette.Count - 1
    Dim color As Aurigma.GraphicsMill.RgbColor = palette(i)

    Console.WriteLine("A: " & color.A & " R: " & color.R & " G: " & color.G & " B: " & color.B)
Next
C#
for (int i = 0; i< palette.Count; i++)
{
    Aurigma.GraphicsMill.RgbColor color = palette[i];

    Console.WriteLine("A: " + color.A + " R: " + color.R + " G: " + color.G + " B: " + color.B);
}

See Also

Reference