|
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
)
Public Function ReduceColors (
image As Bitmap,
paletteSize As Integer
) As Bitmap
Request Example
View SourceParameters
- 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:
BitmapReturns image with reduced number of colors.
Remarks See Also