Converts an image of any type to type dst_type.

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

Syntax

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

Parameters

src
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
dst_type
Type: FreeImageAPI..::.FREE_IMAGE_TYPE
Destination type.
scale_linear
Type: System..::.Boolean
True to scale linear, else false.

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