Initializes a new instance of the FreeImageBitmap class bases on the specified file.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
| C# |
|---|
public FreeImageBitmap( string filename, bool useIcm ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ filename As String, _ useIcm As Boolean _ ) |
| Visual C++ |
|---|
public: FreeImageBitmap( String^ filename, bool useIcm ) |
Parameters
- filename
- Type: System..::.String
The complete name of the file to load.
- useIcm
- Type: System..::.Boolean
Ignored.
Exceptions
| Exception | Condition |
|---|---|
| System..::.Exception | The operation failed. |
| System..::.ArgumentNullException | filename is a null reference. |
| System.IO..::.FileNotFoundException | filename does not exist. |