Contains methods and properties used to read WebP images.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public sealed class WebPReader : ImageReader
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.
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"); } }