ColorPalette.Create Method (Bitmap, Int32, ColorQuantizationAlgorithm)

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
)

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.

Return Value

The ColorPalette class instance.

See Also

Reference