FreeImage.LoadMultiBitmapFromStream Method

FreeImage.NET

FreeImageLoadMultiBitmapFromStream Method
Loads a FreeImage multi-paged bitmap from a stream and returns the FreeImage memory stream used as temporary buffer. The bitmap can not be modified by calling AppendPage(FIMULTIBITMAP, FIBITMAP), InsertPage(FIMULTIBITMAP, Int32, FIBITMAP), MovePage(FIMULTIBITMAP, Int32, Int32) or DeletePage(FIMULTIBITMAP, Int32).

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static FIMULTIBITMAP LoadMultiBitmapFromStream(
	Stream stream,
	FREE_IMAGE_FORMAT format,
	FREE_IMAGE_LOAD_FLAGS flags,
	out FIMEMORY memory
)

Parameters

stream
Type: System.IOStream
The stream to read from.
format
Type: FreeImageAPIFREE_IMAGE_FORMAT
Format of the image.
flags
Type: FreeImageAPIFREE_IMAGE_LOAD_FLAGS
Flags to enable or disable plugin-features.
memory
Type: FreeImageAPIFIMEMORY
The temporary memory buffer used to load the bitmap.

Return Value

Type: FIMULTIBITMAP
Handle to a FreeImage multi-paged bitmap.
Exceptions
ExceptionCondition
ArgumentNullExceptionstream is null.
ArgumentExceptionstream can not read.
See Also