FreeImage.LoadFromStream Method (Stream, FREE_IMAGE_LOAD_FLAGS)

FreeImage.NET

FreeImageLoadFromStream Method (Stream, FREE_IMAGE_LOAD_FLAGS)
Loads a FreeImage bitmap. The stream must be set to the correct position before calling LoadFromStream.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static FIBITMAP LoadFromStream(
	Stream stream,
	FREE_IMAGE_LOAD_FLAGS flags
)

Parameters

stream
Type: System.IOStream
The stream to read from.
flags
Type: FreeImageAPIFREE_IMAGE_LOAD_FLAGS
Flags to enable or disable plugin-features.

Return Value

Type: FIBITMAP
Handle to a FreeImage bitmap.
Exceptions
ExceptionCondition
ArgumentNullExceptionstream is null.
ArgumentExceptionstream is not capable of reading.
See Also