FreeImage.NET Class Library Reference
FreeImageBitmapSave Method (String, FREE_IMAGE_FORMAT, FREE_IMAGE_SAVE_FLAGS) |
Saves this FreeImageBitmap to the specified file in the specified format
using the specified saving flags.
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, FREE_IMAGE_SAVE_FLAGS flags )
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. - flags
- Type: FreeImageAPIFREE_IMAGE_SAVE_FLAGS
Flags to enable or disable plugin-features.
Exceptions
Exception | Condition |
---|---|
ArgumentException | filename is null or empty. |
Exception | Saving the image failed. |
See Also