Converts a bitmap to 1-bit monochrome bitmap using a dithering algorithm.
For 1-bit input bitmaps, the function clones the input bitmap and builds a monochrome palette.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public static FIBITMAP Dither( FIBITMAP dib, FREE_IMAGE_DITHER algorithm ) |
Visual Basic (Declaration) |
---|
Public Shared Function Dither ( _ dib As FIBITMAP, _ algorithm As FREE_IMAGE_DITHER _ ) As FIBITMAP |
Visual C++ |
---|
public: static FIBITMAP Dither( FIBITMAP dib, FREE_IMAGE_DITHER algorithm ) |
Parameters
- dib
- Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
- algorithm
- Type: FreeImageAPI..::.FREE_IMAGE_DITHER
The dithering algorithm to use.