Method SaveToFile
SaveToFile(string, BitmapType)
Saves an image in the named file.
public virtual bool SaveToFile(string filename, BitmapType bitmapType)
Parameters
filenamestringPath to file.
bitmapTypeBitmapTypeType of the bitmap. Depending on how library and OS has been configured and by which handlers have been loaded, not all formats may be available.
Returns
- bool
trueif the call succeeded,falseotherwise.
SaveToFile(string, string)
Saves an image in the named file.
public virtual bool SaveToFile(string filename, string mimeType)
Parameters
filenamestringName of the file to save the image to.
mimeTypestringMIME type string (for example 'image/jpeg').
Returns
- bool
trueif the call succeeded,falseotherwise.
SaveToFile(string)
Saves an image in the named file.
public virtual bool SaveToFile(string filename)
Parameters
filenamestringPath to file.
Returns
- bool
trueif the call succeeded,falseotherwise.
Remarks
File type is determined from the extension of the file name. Note that this function may fail if the extension is not recognized! You can use one of the overload methods to save images to files with non-standard extensions.