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