Class AnimatedImageEncoder
- Namespace
- SixLabors.ImageSharp.Formats
- Assembly
- SixLabors.ImageSharp.dll
Acts as a base class for all image encoders that allow encoding animation sequences.
public abstract class AnimatedImageEncoder : AlphaAwareImageEncoder, IImageEncoder, IAnimatedImageEncoder
- Inheritance
-
AnimatedImageEncoder
- Implements
- Derived
- Inherited Members
Properties
AnimateRootFrame
Gets a value indicating whether the root frame is shown as part of the animated sequence in supported encoders.
public bool? AnimateRootFrame { get; init; }
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.
public Color? BackgroundColor { get; init; }
Property Value
RepeatCount
Gets the number of times any animation is repeated in supported encoders.
public ushort? RepeatCount { get; init; }