Method SaveToStream
SaveToStream(Stream, BitmapType, int)
Saves this image to the specified stream in the specified format defined
in type.
public override bool SaveToStream(Stream stream, BitmapType type, int quality)
Parameters
streamStreamThe Stream where the image will be saved.
typeBitmapTypeAn BitmapType that specifies the format of the saved image.
qualityintImage quality. Optional. If not specified, DefaultSaveQuality is used. Can be ignored on some platforms.
Returns
- bool
trueif the operation succeeded,falseotherwise.
Remarks
Note: Not all values of BitmapType enumeration may be supported by the library and operating system for the save operation.