Loads a FreeImage bitmap. The stream must be set to the correct position before calling LoadFromStream.

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

Syntax

C#
public static FIBITMAP LoadFromStream(
	Stream stream,
	FREE_IMAGE_LOAD_FLAGS flags
)
Visual Basic (Declaration)
Public Shared Function LoadFromStream ( _
	stream As Stream, _
	flags As FREE_IMAGE_LOAD_FLAGS _
) As FIBITMAP
Visual C++
public:
static FIBITMAP LoadFromStream(
	Stream^ stream, 
	FREE_IMAGE_LOAD_FLAGS flags
)

Parameters

stream
Type: System.IO..::.Stream
The stream to read from.
flags
Type: FreeImageAPI..::.FREE_IMAGE_LOAD_FLAGS
Flags to enable or disable plugin-features.

Return Value

Handle to a FreeImage bitmap.

Exceptions

ExceptionCondition
System..::.ArgumentNullException stream is null.
System..::.ArgumentException stream is not capable of reading.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also