Loads a bitmap from an arbitrary source.

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

Syntax

C#
public static FIBITMAP LoadFromHandle(
	FREE_IMAGE_FORMAT fif,
	ref FreeImageIO io,
	fi_handle handle,
	FREE_IMAGE_LOAD_FLAGS flags
)
Visual Basic (Declaration)
Public Shared Function LoadFromHandle ( _
	fif As FREE_IMAGE_FORMAT, _
	ByRef io As FreeImageIO, _
	handle As fi_handle, _
	flags As FREE_IMAGE_LOAD_FLAGS _
) As FIBITMAP
Visual C++
public:
static FIBITMAP LoadFromHandle(
	FREE_IMAGE_FORMAT fif, 
	FreeImageIO% io, 
	fi_handle handle, 
	FREE_IMAGE_LOAD_FLAGS flags
)

Parameters

fif
Type: FreeImageAPI..::.FREE_IMAGE_FORMAT
Type of the bitmap.
io
Type: FreeImageAPI.IO..::.FreeImageIO %
A FreeImageIO structure with functionpointers to handle the source.
handle
Type: FreeImageAPI.IO..::.fi_handle
A handle to the source.
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