Click or drag to resize
Accord.NET (logo)

ColorImageQuantizerReduceColors Method (Bitmap, Color)

Create an image with reduced number of colors using the specified palette.

Namespace:  Accord.Imaging.ColorReduction
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.7.0
Syntax
public Bitmap ReduceColors(
	Bitmap image,
	Color[] palette
)
Request Example View Source

Parameters

image
Type: System.DrawingBitmap
Source image to process.
palette
Type: System.DrawingColor
Target color palette. Must contatin 2-256 colors.

Return Value

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