Decodes a bitmap, allocates memory for it and returns it as a FIBITMAP.

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

Syntax

C#
public static FIBITMAP Load(
	FREE_IMAGE_FORMAT fif,
	string filename,
	FREE_IMAGE_LOAD_FLAGS flags
)
Visual Basic (Declaration)
Public Shared Function Load ( _
	fif As FREE_IMAGE_FORMAT, _
	filename As String, _
	flags As FREE_IMAGE_LOAD_FLAGS _
) As FIBITMAP
Visual C++
public:
static FIBITMAP Load(
	FREE_IMAGE_FORMAT fif, 
	String^ filename, 
	FREE_IMAGE_LOAD_FLAGS flags
)

Parameters

fif
Type: FreeImageAPI..::.FREE_IMAGE_FORMAT
Type of the bitmap.
filename
Type: System..::.String
Name of the file to decode.
flags
Type: FreeImageAPI..::.FREE_IMAGE_LOAD_FLAGS
Flags to enable or disable plugin-features.

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