FreeImage.NET Class Library Reference
FreeImageBitmapQuantize Method (FREE_IMAGE_QUANTIZE, Int32, Palette) |
Quantizes this FreeImageBitmap from 24 bit to 8bit creating a new
palette with the specified paletteSize using the specified
algorithm and the specified
reservePalette up to the
specified paletteSize.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public bool Quantize( FREE_IMAGE_QUANTIZE algorithm, int paletteSize, Palette reservePalette )
Parameters
- algorithm
- Type: FreeImageAPIFREE_IMAGE_QUANTIZE
The color reduction algorithm to be used. - paletteSize
- Type: SystemInt32
Size of the desired output palette. - reservePalette
- Type: FreeImageAPIPalette
The provided palette.
Return Value
Type: BooleanReturns true on success, false on failure.
See Also