FreeImage.NET Class Library Reference
![]() | FreeImageBitmap Constructor (String, FREE_IMAGE_FORMAT) |
Initializes a new instance of the FreeImageBitmap class bases on the specified file
in the specified format.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
SyntaxC#
public FreeImageBitmap( string filename, FREE_IMAGE_FORMAT format )
Parameters
- filename
- Type: SystemString
The complete name of the file to load. - format
- Type: FreeImageAPIFREE_IMAGE_FORMAT
Format of the image.
Exceptions| Exception | Condition |
|---|---|
| Exception | The operation failed. |
| ArgumentNullException | filename is a null reference. |
| FileNotFoundException | filename does not exist. |
See Also