Enum GifPaletteScope
Where an animated GIF's palettes come from.
public enum GifPaletteScope
Fields
Auto = 0One global table when all frames together have few enough colors, else a table per frame.
Global = 1One global table built from every frame.
PerFrame = 2A 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
});