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

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,
	Color[] palette
)

Parameters

image
Type: System.Drawing..::.Bitmap
Source image to process.
palette
Type: array< System.Drawing..::.Color >[]()[]
Target color palette. Must contatin 2-256 colors.

Return Value

Returns image with reduced number of colors.

Remarks

See Also