ColorQuantizeEx is an extension to the ColorQuantize(FIBITMAP, FREE_IMAGE_QUANTIZE)
method that provides additional options used to quantize a 24-bit image to any
number of colors (up to 256), as well as quantize a 24-bit image using a
provided palette.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public static FIBITMAP ColorQuantizeEx( FIBITMAP dib, FREE_IMAGE_QUANTIZE quantize, int PaletteSize, RGBQUAD[] ReservePalette, bool minColorDepth ) |
Visual Basic (Declaration) |
---|
Public Shared Function ColorQuantizeEx ( _ dib As FIBITMAP, _ quantize As FREE_IMAGE_QUANTIZE, _ PaletteSize As Integer, _ ReservePalette As RGBQUAD(), _ minColorDepth As Boolean _ ) As FIBITMAP |
Visual C++ |
---|
public: static FIBITMAP ColorQuantizeEx( FIBITMAP dib, FREE_IMAGE_QUANTIZE quantize, int PaletteSize, array<RGBQUAD>^ ReservePalette, bool minColorDepth ) |
Parameters
- dib
- Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
- quantize
- Type: FreeImageAPI..::.FREE_IMAGE_QUANTIZE
Specifies the color reduction algorithm to be used.
- PaletteSize
- Type: System..::.Int32
Size of the desired output palette.
- ReservePalette
- Type: array<
FreeImageAPI..::.RGBQUAD
>[]()[]
The provided palette.
- minColorDepth
- Type: System..::.Boolean
true to create a bitmap with the smallest possible color depth for the specified PaletteSize.