Loads a FreeImage bitmap.
Load flags can be provided by the flags parameter.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
| C# |
|---|
public static FIBITMAP LoadEx( string filename, FREE_IMAGE_LOAD_FLAGS flags ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function LoadEx ( _ filename As String, _ flags As FREE_IMAGE_LOAD_FLAGS _ ) As FIBITMAP |
| Visual C++ |
|---|
public: static FIBITMAP LoadEx( 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.
Return Value
Handle to a FreeImage bitmap.
Exceptions
| Exception | Condition |
|---|---|
| System.IO..::.FileNotFoundException | filename does not exists. |