WebPSettings Class

Contains methods and properties used to write WebP images (both static and animated).

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

Syntax

C#
public sealed class WebPSettings : WriterSettings

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 creates a simple animated image in WebP format:

C#
string dir = @"C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\\";
string[] images = { "Chrysanthemum.jpg", "Desert.jpg", "Jellyfish.jpg", "Tulips.jpg" };

using (var writer = new GifWriter(@"Images\Output\Slideshow.gif"))
using (var cc = new ColorConverter(PixelFormat.Format8bppIndexed))
{
    writer.FrameOptions.Delay = 100;

    foreach (string image in images)
    {
        using (var reader = new JpegReader(dir + image))
        {
            Pipeline.Run(reader + cc + writer);
        }
    }
}

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.Codecs.WriterSettings
L Aurigma.GraphicsMill.Codecs.WebPSettings

See Also

Reference

Manual