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

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

Syntax

C#
public static FIBITMAP LoadFromMemory(
	FREE_IMAGE_FORMAT fif,
	FIMEMORY stream,
	FREE_IMAGE_LOAD_FLAGS flags
)
Visual Basic (Declaration)
Public Shared Function LoadFromMemory ( _
	fif As FREE_IMAGE_FORMAT, _
	stream As FIMEMORY, _
	flags As FREE_IMAGE_LOAD_FLAGS _
) As FIBITMAP
Visual C++
public:
static FIBITMAP LoadFromMemory(
	FREE_IMAGE_FORMAT fif, 
	FIMEMORY stream, 
	FREE_IMAGE_LOAD_FLAGS flags
)

Parameters

fif
Type: FreeImageAPI..::.FREE_IMAGE_FORMAT
Type of the bitmap.
stream
Type: FreeImageAPI..::.FIMEMORY
Handle to a memory stream.
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