PeachDrawing
PeachDrawing.RasterCanvas
RasterCanvas.SaveAsync(Stream, string, EncoderOptions, CancellationToken) Method
Encodes this canvas’s pixels into stream in any format PeachImage supports (PNG, JPEG, WebP, ...), for a standalone canvas built through CreateCanvas(int, int, double).
public System.Threading.Tasks.Task SaveAsync(System.IO.Stream stream, string formatName, PeachImage.EncoderOptions options, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
stream System.IO.Stream
formatName System.String
options EncoderOptions
cancellationToken System.Threading.CancellationToken