Table of Contents

Enum GifPaletteScope

Namespace
Egami.Formats.Gif
Assembly
Egami.dll

Where an animated GIF's palettes come from.

public enum GifPaletteScope

Fields

Auto = 0

One global table when all frames together have few enough colors, else a table per frame.

Global = 1

One global table built from every frame.

PerFrame = 2

A local table for every frame.

Examples

using FileStream output = File.Create("duck.gif");
photo.Save(output, GifFormat.Info, new GifWriterOptions
{
    Palette = new PaletteOptions { MaxColors = 128, Dither = DitherMode.Ordered }, // FloydSteinberg (default), Ordered or None
    PaletteScope = GifPaletteScope.PerFrame,   // Auto (default): one table when all frames fit, else one per frame
});