Click or drag to resize
Accord.NET (logo)

ColorImageQuantizerReduceColors Method (Bitmap, Int32)

Create an image with reduced number of colors.

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

Parameters

image
Type: System.DrawingBitmap
Source image to process.
paletteSize
Type: SystemInt32
Number of colors to get in the output image, [2, 256].

Return Value

Type: Bitmap
Returns image with reduced number of colors.
Remarks
See Also