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:  FreeImageAPI
Assembly:  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.

Return Value

Handle to a FreeImage bitmap.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also