Click or drag to resize
Accord.NET (logo)

MedianCutQuantizerGetPalette Method

Get paletter of the specified size.

Namespace:  Accord.Imaging.ColorReduction
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public Color[] GetPalette(
	int colorCount
)
Request Example View Source

Parameters

colorCount
Type: SystemInt32
Palette size to get.

Return Value

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

Implements

IColorQuantizerGetPalette(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