Quantizes this FreeImageBitmap from 24 bit, using the specified
algorithm 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 ) |
Visual Basic (Declaration) |
---|
Public Function GetQuantizedInstance ( _ algorithm As FREE_IMAGE_QUANTIZE, _ paletteSize As Integer _ ) As FreeImageBitmap |
Visual C++ |
---|
public: FreeImageBitmap^ GetQuantizedInstance( 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.