Converts a bitmap to a 8-bit greyscale image with a linear ramp.

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

Syntax

C#
public static FIBITMAP ConvertToGreyscale(
	FIBITMAP dib
)
Visual Basic (Declaration)
Public Shared Function ConvertToGreyscale ( _
	dib As FIBITMAP _
) As FIBITMAP
Visual C++
public:
static FIBITMAP ConvertToGreyscale(
	FIBITMAP dib
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.

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