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

ColorPalette Constructor (Bitmap, Boolean)

Creates and initializes new ColorPalette class instance. Colors of this palette are generated from the specified bitmap.

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

Syntax

Visual Basic
Public Sub New ( _
	bitmap As Bitmap, _
	hasAlpha As Boolean _
)
C#
public ColorPalette(
	Bitmap bitmap,
	bool hasAlpha
)

Parameters

bitmap

Type: Aurigma.GraphicsMill.Bitmap

Bitmap class instance for which optimal palette is built.
hasAlpha

Type: System.Boolean

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

See Also

Reference