Table of Contents

Method SaveAsWebp

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

SaveAsWebp(string, int)

Saves the image in WebP format to the specified file path.

public bool SaveAsWebp(string filePath, int quality = 80)

Parameters

filePath string

The file path to save the image to.

quality int

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

Share