Loads a FreeImage bitmap.
The stream must be set to the correct position before calling LoadFromStream.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
| C# |
|---|
public static FIBITMAP LoadFromStream( Stream stream ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function LoadFromStream ( _ stream As Stream _ ) As FIBITMAP |
| Visual C++ |
|---|
public: static FIBITMAP LoadFromStream( Stream^ stream ) |
Parameters
- stream
- Type: System.IO..::.Stream
The stream to read from.
Return Value
Handle to a FreeImage bitmap.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | stream is null. |
| System..::.ArgumentException | stream is not capable of reading. |