Table of Contents

Interface IAnimatedImageEncoder

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

Defines the contract for all image encoders that allow encoding animation sequences.

public interface IAnimatedImageEncoder

Properties

AnimateRootFrame

Gets a value indicating whether the root frame is shown as part of the animated sequence in supported encoders.

bool? AnimateRootFrame { get; }

Property Value

bool?

BackgroundColor

Gets the default background color of the canvas when animating in supported encoders. This color may be used to fill the unused space on the canvas around the frames, as well as the transparent pixels of the first frame. The background color is also used when a frame disposal mode is RestoreToBackground.

Color? BackgroundColor { get; }

Property Value

Color?

RepeatCount

Gets the number of times any animation is repeated in supported encoders.

ushort? RepeatCount { get; }

Property Value

ushort?