[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcBitmap.SaveAsWebp

SaveAsWebp Method

SaveAsWebp(Stream, Rectangle?, bool, int, int)

Saves the image into a Stream in WEBP format.

Declaration
public void SaveAsWebp(Stream stream, Rectangle? clipRect = null, bool lossless = false, int quality = 75, int method = 5)
Parameters
Type Name Description
Stream stream

The output stream.

Rectangle? clipRect

Clipping rectangle of the image to be saved.

bool lossless

Either lossless (true) or lossy (false) webp format.

int quality

The compression quality. Between 0 and 100.

int method

The encoding method to use. Its a quality/speed trade-off (0=fast, 6=slower-better).

SaveAsWebp(string, Rectangle?, bool, int, int)

Saves the image to a file in WEBP format.

Declaration
public void SaveAsWebp(string path, Rectangle? clipRect = null, bool lossless = false, int quality = 75, int method = 5)
Parameters
Type Name Description
string path

The output file path.

Rectangle? clipRect

Clipping rectangle of the image to be saved.

bool lossless

Either lossless (true) or lossy (false) webp format.

int quality

The compression quality. Between 0 and 100.

int method

The encoding method to use. Its a quality/speed trade-off (0=fast, 6=slower-better).