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:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public bool Quantize( FREE_IMAGE_QUANTIZE algorithm, int paletteSize, int reserveSize, Palette reservePalette ) |
Visual Basic (Declaration) |
---|
Public Function Quantize ( _ algorithm As FREE_IMAGE_QUANTIZE, _ paletteSize As Integer, _ reserveSize As Integer, _ reservePalette As Palette _ ) As Boolean |
Visual C++ |
---|
public: bool Quantize( FREE_IMAGE_QUANTIZE algorithm, int paletteSize, int reserveSize, Palette^ reservePalette ) |
Parameters
- algorithm
- Type: FreeImageAPI..::.FREE_IMAGE_QUANTIZE
The color reduction algorithm to be used.
- paletteSize
- Type: System..::.Int32
Size of the desired output palette.
- reserveSize
- Type: System..::.Int32
Size of the provided palette of ReservePalette.
- reservePalette
- Type: FreeImageAPI..::.Palette
The provided palette.