FreeImage.NET Class Library Reference
![]() | FreeImageLoadFromStream Method (Stream) |
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)
SyntaxC#
public static FIBITMAP LoadFromStream( Stream stream )
Parameters
- stream
- Type: System.IOStream
The stream to read from.
Return Value
Type: FIBITMAPHandle to a FreeImage bitmap.
Exceptions| Exception | Condition |
|---|---|
| ArgumentNullException | stream is null. |
| ArgumentException | stream is not capable of reading. |
See Also