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:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public FreeImageBitmap GetQuantizedInstance( FREE_IMAGE_QUANTIZE algorithm, int paletteSize, int reserveSize, RGBQUAD[] reservePalette ) |
Visual Basic (Declaration) |
---|
Public Function GetQuantizedInstance ( _ algorithm As FREE_IMAGE_QUANTIZE, _ paletteSize As Integer, _ reserveSize As Integer, _ reservePalette As RGBQUAD() _ ) As FreeImageBitmap |
Visual C++ |
---|
public: FreeImageBitmap^ GetQuantizedInstance( FREE_IMAGE_QUANTIZE algorithm, int paletteSize, int reserveSize, array<RGBQUAD>^ 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.
- reservePalette
- Type: array<
FreeImageAPI..::.RGBQUAD
>[]()[]
The provided palette.