Create an image with reduced number of colors.

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

Syntax

C#
public Bitmap ReduceColors(
	Bitmap image,
	int paletteSize
)

Parameters

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

Return Value

Returns image with reduced number of colors.

Remarks

See Also