Get palette 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#
Color[] GetPalette(
	int colorCount
)

Parameters

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

Return Value

Returns reduced color palette for the accumulated/processed colors.

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