FreeImage.NET Class Library Reference
FreeImageSaveEx Method (FIBITMAP, String, Boolean) |
Saves a previously loaded FreeImage bitmap to a file.
The format is taken off the filename.
If no suitable format was found false will be returned.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool SaveEx( ref FIBITMAP dib, string filename, bool unloadSource )
Parameters
- dib
- Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap. - filename
- Type: SystemString
The complete name of the file to save to. The extension will be corrected if it is no valid extension for the selected format or if no extension was specified. - unloadSource
- Type: SystemBoolean
When true the structure will be unloaded on success. If the function failed and returned false, the bitmap was not unloaded.
Return Value
Type: BooleanReturns true on success, false on failure.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | dib or filename is null. |
See Also