FreeImage.Dither Method

FreeImage.NET

FreeImageDither Method
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) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static FIBITMAP Dither(
	FIBITMAP dib,
	FREE_IMAGE_DITHER algorithm
)

Parameters

dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.
algorithm
Type: FreeImageAPIFREE_IMAGE_DITHER
The dithering algorithm to use.

Return Value

Type: FIBITMAP
Handle to a FreeImage bitmap.
See Also