FreeImage.NET Class Library Reference
FreeImageBitmapSave Method (String, FREE_IMAGE_FORMAT) |
Saves this FreeImageBitmap to the specified file in the specified format.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public void Save( string filename, FREE_IMAGE_FORMAT format )
Parameters
- filename
- Type: SystemString
A string that contains the name of the file to which to save this FreeImageBitmap. - format
- Type: FreeImageAPIFREE_IMAGE_FORMAT
An FREE_IMAGE_FORMAT that specifies the format of the saved image.
Exceptions
Exception | Condition |
---|---|
ArgumentException | filename is null or empty. |
Exception | Saving the image failed. |
See Also