[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcBitmap.SaveAsJpeg

SaveAsJpeg Method

SaveAsJpeg(Stream, Rectangle?, int)

Saves the image into a Stream in JPEG format with specified quality (from 0 to 100).

Declaration
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)
Parameters
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).

SaveAsJpeg(string, Rectangle?, int)

Saves the image to a file in JPEG format with specified quality (from 0 to 100).

Declaration
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)
Parameters
Type Name Description
string path

The output file path.

Rectangle? clipRect

Clipping rectangle of the image to be saved.

int quality

The image quality from 0 (best compression) to 100 (best quality).