ColorPalette.Create Method (Bitmap, Int32, ColorQuantizationAlgorithm, Int32)

Returns a new ColorPalette with a given size containing colors generated from a given bitmap using the specified quantiztion algorithm.

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

Syntax

C#
public static ColorPalette Create(
	Bitmap bitmap,
	int entryCount,
	ColorQuantizationAlgorithm quantizationAlgorithm,
	int paletteAlphaThreshold
)

Parameters

bitmap

Type: Aurigma.GraphicsMill.Bitmap

A Bitmap to create this palette from.
entryCount

Type: System.Int32

The number of colors in the palette.
quantizationAlgorithm

Type: Aurigma.GraphicsMill.Transforms.ColorQuantizationAlgorithm

A color quantiztion algorithm used to reduce colors.
paletteAlphaThreshold

Type: System.Int32

The alpha channel threshold.

Return Value

The ColorPalette class instance.

See Also

Reference