Saves this FreeImageBitmap to the specified file in the specified format
using the specified saving flags.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public void Save( string filename, FREE_IMAGE_FORMAT format, FREE_IMAGE_SAVE_FLAGS flags ) |
Visual Basic (Declaration) |
---|
Public Sub Save ( _ filename As String, _ format As FREE_IMAGE_FORMAT, _ flags As FREE_IMAGE_SAVE_FLAGS _ ) |
Visual C++ |
---|
public: void Save( String^ filename, FREE_IMAGE_FORMAT format, FREE_IMAGE_SAVE_FLAGS flags ) |
Parameters
- filename
- Type: System..::.String
A string that contains the name of the file to which to save this FreeImageBitmap.
- format
- Type: FreeImageAPI..::.FREE_IMAGE_FORMAT
An FREE_IMAGE_FORMAT that specifies the format of the saved image.
- flags
- Type: FreeImageAPI..::.FREE_IMAGE_SAVE_FLAGS
Flags to enable or disable plugin-features.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentException | filename is null or empty. |
System..::.Exception | Saving the image failed. |