Table of Contents

Method SaveAsWebpBytes

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

SaveAsWebpBytes(int)

Saves the image as WebP to a byte array without writing to disk.

public byte[] SaveAsWebpBytes(int quality = 80)

Parameters

quality int

WebP 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.

Share