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