Click or drag to resize
Accord.NET (logo)

IColorQuantizerGetPalette Method

Get palette of the specified size.

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

Parameters

colorCount
Type: SystemInt32
Palette size to return.

Return Value

Type: Color
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