FreeImage.Threshold Method

FreeImage.NET

FreeImageThreshold Method
Converts a bitmap to 1-bit monochrome bitmap using a threshold T between [0..255]. The function first converts the bitmap to a 8-bit greyscale bitmap. Then, any brightness level that is less than T is set to zero, otherwise to 1. 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 Threshold(
	FIBITMAP dib,
	byte t
)

Parameters

dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.
t
Type: SystemByte
The threshold.

Return Value

Type: FIBITMAP
Handle to a FreeImage bitmap.
See Also