Initializes a new instance of the FreeImageBitmap class
bases on the specified stream in the specified format.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
| C# |
|---|
public FreeImageBitmap( Stream stream, FREE_IMAGE_FORMAT format ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ stream As Stream, _ format As FREE_IMAGE_FORMAT _ ) |
| Visual C++ |
|---|
public: FreeImageBitmap( Stream^ stream, FREE_IMAGE_FORMAT format ) |
Parameters
- stream
- Type: System.IO..::.Stream
Stream to read from.
- format
- Type: FreeImageAPI..::.FREE_IMAGE_FORMAT
Format of the image.
Remarks
You must keep the stream open for the lifetime of the FreeImageBitmap.
Exceptions
| Exception | Condition |
|---|---|
| System..::.Exception | The operation failed. |
| System..::.ArgumentNullException | stream is a null reference. |