Quantizes this FreeImageBitmap from 24 bit to 8bit creating a new
palette with the specified paletteSize using the specified
algorithm.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public bool Quantize( FREE_IMAGE_QUANTIZE algorithm, int paletteSize ) |
Visual Basic (Declaration) |
---|
Public Function Quantize ( _ algorithm As FREE_IMAGE_QUANTIZE, _ paletteSize As Integer _ ) As Boolean |
Visual C++ |
---|
public: bool Quantize( FREE_IMAGE_QUANTIZE algorithm, int paletteSize ) |
Parameters
- algorithm
- Type: FreeImageAPI..::.FREE_IMAGE_QUANTIZE
The color reduction algorithm to be used.
- paletteSize
- Type: System..::.Int32
Size of the desired output palette.