[]
Saves the image into a Stream in WEBP format.
public void SaveAsWebp(Stream stream, Rectangle? clipRect = null, bool lossless = false, int quality = 75, int method = 5)
| 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). |
Saves the image to a file in WEBP format.
public void SaveAsWebp(string path, Rectangle? clipRect = null, bool lossless = false, int quality = 75, int method = 5)
| 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). |