Represents a frame of a WebP image.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public sealed class WebPFrame : Frame
The following code reads a WebP image and saves its frames as separate PNG files:
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"); } }