|
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.8.0
Syntax public Bitmap ReduceColors(
Bitmap image,
Color[] palette
)
Public Function ReduceColors (
image As Bitmap,
palette As Color()
) As Bitmap
Request Example
View SourceParameters
- image
- Type: System.DrawingBitmap
Source image to process. - palette
- Type: System.DrawingColor
Target color palette. Must contatin 2-256 colors.
Return Value
Type:
BitmapReturns image with reduced number of colors.
Remarks See Also