Click or drag to resize
Accord.NET (logo)

ColorImageQuantizerCalculatePalette Method (Bitmap, Int32)

Calculate reduced color palette for the specified image.

Namespace:  Accord.Imaging.ColorReduction
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public Color[] CalculatePalette(
	Bitmap image,
	int paletteSize
)
Request Example View Source

Parameters

image
Type: System.DrawingBitmap
Image to calculate palette for.
paletteSize
Type: SystemInt32
Palette size to calculate.

Return Value

Type: Color
Return reduced color palette for the specified image.
Remarks
See Also