FreeImage.NET Class Library Reference
FreeImageBitmap Constructor (String, FREE_IMAGE_LOAD_FLAGS) |
Initializes a new instance of the FreeImageBitmap class bases on the specified file
with the specified loading flags.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public FreeImageBitmap( string filename, FREE_IMAGE_LOAD_FLAGS flags )
Parameters
- filename
- Type: SystemString
The complete name of the file to load. - flags
- Type: FreeImageAPIFREE_IMAGE_LOAD_FLAGS
Flags to enable or disable plugin-features.
Exceptions
Exception | Condition |
---|---|
Exception | The operation failed. |
ArgumentNullException | filename is a null reference. |
FileNotFoundException | filename does not exist. |
See Also