Create an image with reduced number of colors.
Namespace:
AForge.Imaging.ColorReductionAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
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 ReduceColors(UnmanagedImage, Int32) for details.