Table of Contents

Class GifMetadata

Namespace
SixLabors.ImageSharp.Formats.Gif
Assembly
SixLabors.ImageSharp.dll

Provides Gif specific metadata information for the image.

public class GifMetadata : IDeepCloneable
Inheritance
GifMetadata
Implements
Inherited Members

Constructors

GifMetadata()

Initializes a new instance of the GifMetadata class.

public GifMetadata()

Properties

BackgroundColorIndex

Gets or sets the index at the GlobalColorTable for the background color. The background color is the color used for those pixels on the screen that are not covered by an image.

public byte BackgroundColorIndex { get; set; }

Property Value

byte

ColorTableMode

Gets or sets the color table mode.

public GifColorTableMode ColorTableMode { get; set; }

Property Value

GifColorTableMode

Comments

Gets or sets the collection of comments about the graphics, credits, descriptions or any other type of non-control and non-graphic data.

public IList<string> Comments { get; set; }

Property Value

IList<string>

GlobalColorTable

Gets or sets the global color table, if any. The underlying pixel format is represented by Rgb24.

public ReadOnlyMemory<Color>? GlobalColorTable { get; set; }

Property Value

ReadOnlyMemory<Color>?

RepeatCount

Gets or sets the number of times any animation is repeated. 0 means to repeat indefinitely, count is set as repeat n-1 times. Defaults to 1.

public ushort RepeatCount { get; set; }

Property Value

ushort

Methods

DeepClone()

public IDeepCloneable DeepClone()

Returns

IDeepCloneable