Method SaveAsWebpBytes
SaveAsWebpBytes(int)
Saves the image as WebP to a byte array without writing to disk.
public byte[] SaveAsWebpBytes(int quality = 80)
Parameters
qualityintWebP quality level (0 to 100). Default is 80.
Returns
- byte[]
A byte array containing the WebP-encoded image data.
Exceptions
- ObjectDisposedException
Thrown if this instance has been disposed.
- InvalidOperationException
Thrown if encoding fails.