FreeImageBitmap Constructor (Stream, FREE_IMAGE_LOAD_FLAGS)

FreeImage.NET

FreeImageBitmap Constructor (Stream, FREE_IMAGE_LOAD_FLAGS)
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) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public FreeImageBitmap(
	Stream stream,
	FREE_IMAGE_LOAD_FLAGS flags
)

Parameters

stream
Type: System.IOStream
Stream to read from.
flags
Type: FreeImageAPIFREE_IMAGE_LOAD_FLAGS
Flags to enable or disable plugin-features.
Exceptions
ExceptionCondition
ExceptionThe operation failed.
ArgumentNullExceptionstream is a null reference.
Remarks
You must keep the stream open for the lifetime of the FreeImageBitmap.
See Also