FreeImage.NET Class Library Reference
FreeImageLoadEx Method (String, FREE_IMAGE_FORMAT) |
Loads a FreeImage bitmap.
In case the loading format is FIF_UNKNOWN the files
real format is being analysed. If no plugin can read the file, format remains
FIF_UNKNOWN and 0 is returned.
The file will be loaded with default loading flags.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static FIBITMAP LoadEx( string filename, ref 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. If the format is unknown use FIF_UNKNOWN. In case a suitable format was found by LoadEx it will be returned in format.
Return Value
Type: FIBITMAPHandle to a FreeImage bitmap.
Exceptions
Exception | Condition |
---|---|
FileNotFoundException | filename does not exists. |
See Also