Calculate reduced color palette for the specified image.

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

Syntax

C#
public Color[] CalculatePalette(
	Bitmap image,
	int paletteSize
)

Parameters

image
Type: System.Drawing..::.Bitmap
Image to calculate palette for.
paletteSize
Type: System..::.Int32
Palette size to calculate.

Return Value

Return reduced color palette for the specified image.

Remarks

See Also