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

ColorPalette Constructor (Bitmap, Int32, ColorQuantizationAlgorithm, Int32)

Creates and initializes a new ColorPalette 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, _
	entryCount As Integer, _
	quantizationAlgorithm As ColorQuantizationAlgorithm, _
	paletteAlphaThreshold As Integer _
)
C#
public ColorPalette(
	Bitmap bitmap,
	int entryCount,
	ColorQuantizationAlgorithm quantizationAlgorithm,
	int paletteAlphaThreshold
)

Parameters

bitmap

Type: Aurigma.GraphicsMill.Bitmap

Bitmap instance for which an optimal palette is built.
entryCount

Type: System.Int32

Number of colors in the palette.
quantizationAlgorithm

Type: Aurigma.GraphicsMill.Transforms.ColorQuantizationAlgorithm

Color quantiztion algorithm used to reduce colors.
paletteAlphaThreshold

Type: System.Int32

Value which specifies the alpha channel threshold.

See Also

Reference