Contains all the possible GIF frame writing settings.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public sealed class GifFrameSettings
The following code creates an animated GIF file by grouping JPEG images:
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); } } }