FreeImage.NET Class Library Reference
FreeImageBitmapGetQuantizedInstance Method (FREE_IMAGE_QUANTIZE, Int32, Int32, Palette) |
Quantizes this FreeImageBitmap from 24 bit, using the specified
algorithm and up to reserveSize
entries from reservePalette initializing
a new 8 bit instance with the specified paletteSize.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public FreeImageBitmap GetQuantizedInstance( FREE_IMAGE_QUANTIZE algorithm, int paletteSize, int reserveSize, Palette reservePalette )
Parameters
- algorithm
- Type: FreeImageAPIFREE_IMAGE_QUANTIZE
The color reduction algorithm to be used. - paletteSize
- Type: SystemInt32
Size of the desired output palette. - reserveSize
- Type: SystemInt32
Size of the provided palette. - reservePalette
- Type: FreeImageAPIPalette
The provided palette.
Return Value
Type: FreeImageBitmapThe quantized instance.
See Also