WebPFrame Class

Represents a frame of a WebP image.

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

Syntax

C#
public sealed class WebPFrame : Frame

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
L Aurigma.GraphicsMill.PipelineElement
L Aurigma.GraphicsMill.Codecs.Frame
L Aurigma.GraphicsMill.Codecs.WebPFrame

See Also

Reference

Manual