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

ColorPalette Constructor (Int32, Boolean)

Creates and initializes new ColorPalette class instance. You can specify how much entries the palette should have.

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

Syntax

Visual Basic
Public Sub New ( _
	entryCount As Integer, _
	hasAlpha As Boolean _
)
C#
public ColorPalette(
	int entryCount,
	bool hasAlpha
)

Parameters

entryCount

Type: System.Int32

Number of colors in the palette.
hasAlpha

Type: System.Boolean

Value indicating if palette entries should support alpha channel (information about pixel transparency).

Remarks

All entries of the palette created with this constructor will have the same color value (black). So you need fill the palette entries yourself using Item[Int32] property.

See Also

Reference