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, RGBQUAD[] reservePalette ) |
Visual Basic (Declaration) |
---|
Public Function Quantize ( _ algorithm As FREE_IMAGE_QUANTIZE, _ paletteSize As Integer, _ reserveSize As Integer, _ reservePalette As RGBQUAD() _ ) As Boolean |
Visual C++ |
---|
public: bool Quantize( 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 of ReservePalette.
- reservePalette
- Type: array<
FreeImageAPI..::.RGBQUAD
>[]()[]
The provided palette.