Method SaveToFile
SaveToFile(string, int)
Saves this Image to the specified file.
public virtual bool SaveToFile(string name, int quality)
Parameters
name
stringquality
intImage quality. Optional. If not specified, DefaultSaveQuality is used. Can be ignored on some platforms.
Returns
Remarks
Use ExtensionsForSave to get supported formats for the save operation.
SaveToFile(string, BitmapType, int)
Saves this Image to the specified file.
public virtual bool SaveToFile(string name, BitmapType type, int quality)
Parameters
name
stringA string that contains the name of the file to which to save this Image.
type
BitmapTypeAn BitmapType that specifies the format of the saved image.
quality
intImage quality. Optional. If not specified, DefaultSaveQuality is used. Can be ignored on some platforms.
Returns
- bool
true
if the operation succeeded,false
otherwise.
Remarks
Note: Not all values of BitmapType enumeration may be supported by the library and operating system for the save operation.