WebPFrameSettings Class

Contains all the possible WebP frame writing settings.

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

Syntax

C#
public sealed class WebPFrameSettings

Examples

The following code creates a simple animated image in WebP format:

C#
using (var writer = new WebPWriter(@"Images\Output\AnimatedWebP.webp"))
{
    writer.FrameOptions.Delay = 250;

    for (int i = 0; i < 400; i += 25)
    {
        var bitmap = new Bitmap(400, 100, PixelFormat.Format24bppRgb, RgbColor.Yellow);

        using (var graphics = bitmap.GetAdvancedGraphics())
        {
            graphics.FillEllipse(new SolidBrush(RgbColor.Green), new System.Drawing.RectangleF(i, 0, 100, 100));
        }

        Pipeline.Run(bitmap + writer);
    }
}

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.Codecs.WebPFrameSettings

See Also

Reference

Manual