WebPReader Class

Contains methods and properties used to read WebP images.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public sealed class WebPReader : ImageReader

Remarks

WebP WebP is an image format that provides lossless and lossy compression for images on the web. As soon as it supports animation, it can contain multiple frames. Frame can have its own position, and a number of other paramaters, as delay time, disposal method, etc.

Examples

The following code reads a WebP image and saves its frames as separate PNG files:

C#
using (var reader = new WebPReader(@"Images\AnimatedWebP.webp"))
{
    for (int i = 0; i < reader.Frames.Count; i++)
    {
        reader.Frames[i].GetBitmap().Save(@"Images\Output\WebP_frame_" + i.ToString() + ".png");
    }
}

Inheritance Hierarchy

System.Object

See Also

Reference

Manual