Method SaveAsWebp
SaveAsWebp(string, int)
Saves the image in WebP format to the specified file path.
public bool SaveAsWebp(string filePath, int quality = 80)
Parameters
filePathstringThe file path to save the image to.
qualityintThe encoding quality (0 to 100). Higher values produce larger files with better quality. Default is 80.
Returns
- bool
True if the image was saved successfully; otherwise, false.
Exceptions
- ObjectDisposedException
Thrown if this instance has been disposed.