Initializes a new instance of the FreeImageBitmap class bases on the specified stream with the specified loading flags.

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

Syntax

C#
public FreeImageBitmap(
	Stream stream,
	FREE_IMAGE_LOAD_FLAGS flags
)
Visual Basic (Declaration)
Public Sub New ( _
	stream As Stream, _
	flags As FREE_IMAGE_LOAD_FLAGS _
)
Visual C++
public:
FreeImageBitmap(
	Stream^ stream, 
	FREE_IMAGE_LOAD_FLAGS flags
)

Parameters

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

Remarks

You must keep the stream open for the lifetime of the FreeImageBitmap.

Exceptions

ExceptionCondition
System..::.ExceptionThe operation failed.
System..::.ArgumentNullException stream is a null reference.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also