Get paletter of the specified size.

Namespace:  AForge.Imaging.ColorReduction
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public Color[] GetPalette(
	int colorCount
)

Parameters

colorCount
Type: System..::.Int32
Palette size to get.

Return Value

Returns reduced palette of the specified size, which covers colors processed so far.

Implements

IColorQuantizer..::.GetPalette(Int32)

Remarks

The method must be called after continuously calling AddColor(Color) method and returns reduced color palette for colors accumulated/processed so far.

See Also