FreeImage.LoadFromMemory Method

FreeImage.NET

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

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static FIBITMAP LoadFromMemory(
	FREE_IMAGE_FORMAT fif,
	FIMEMORY stream,
	FREE_IMAGE_LOAD_FLAGS flags
)

Parameters

fif
Type: FreeImageAPIFREE_IMAGE_FORMAT
Type of the bitmap.
stream
Type: FreeImageAPIFIMEMORY
Handle to a memory stream.
flags
Type: FreeImageAPIFREE_IMAGE_LOAD_FLAGS
Flags to enable or disable plugin-features.

Return Value

Type: FIBITMAP
Handle to a FreeImage bitmap.
See Also