Encoding.SaveJpeg Method

Namespace:
Weavy.Core.Imaging
Assembly:
Weavy.Core.dll

SaveJpeg(Image, Stream, int)

Saves the specified image to the specified stream using jpeg compression of the specified quality.

public static void SaveJpeg(this Image img, Stream target, int quality = 90)

Parameters

img
System.Drawing.Image
target
System.IO.Stream
quality
int

A number between 0 and 100.