Converts a non standard image whose color type is FIC_MINISBLACK to a standard 8-bit greyscale image.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static FIBITMAP ConvertToStandardType(
	FIBITMAP src,
	bool scale_linear
)
Visual Basic (Declaration)
Public Shared Function ConvertToStandardType ( _
	src As FIBITMAP, _
	scale_linear As Boolean _
) As FIBITMAP
Visual C++
public:
static FIBITMAP ConvertToStandardType(
	FIBITMAP src, 
	bool scale_linear
)

Parameters

src
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
scale_linear
Type: System..::.Boolean
When true the conversion is done by scaling linearly each pixel value from [min, max] to an integer value between [0..255], where min and max are the minimum and maximum pixel values in the image. When false the conversion is done by rounding each pixel value to an integer between [0..255]. Rounding is done using the following formula: dst_pixel = (BYTE) MIN(255, MAX(0, q)) where int q = int(src_pixel + 0.5);

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