[]
Saves the image into a Stream in JPEG format with specified quality (from 0 to 100).
public void SaveAsJpeg(Stream stream, Rectangle? clipRect = null, int quality = 95)
Public Sub SaveAsJpeg(stream As Stream, Optional clipRect As Rectangle? = Nothing, Optional quality As Integer = 95)
Type | Name | Description |
---|---|---|
Stream | stream | The output stream. |
Rectangle? | clipRect | Clipping rectangle of the image to be saved. |
int | quality | The image quality from 0 (best compression) to 100 (best quality). |
Saves the image to a file in JPEG format with specified quality (from 0 to 100).
public void SaveAsJpeg(string path, Rectangle? clipRect = null, int quality = 95)
Public Sub SaveAsJpeg(path As String, Optional clipRect As Rectangle? = Nothing, Optional quality As Integer = 95)