AnimatedGifConfigurationAnimationMode Property

Gets or sets the looping mode of the animation.
Default value: Repeat.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public AnimationMode AnimationMode { get; set; }

Property Value

AnimationMode
If Repeat, then the animation will be repeated indefinitely.
If PingPong, then the specified frames will be added in both ways so the final animation will be played back and forth.
If PlayOnce, then the animation will be played only once.
The GifEncoder actually supports any positive value less than or equal to UInt16.MaxValue even though they don't have named values in the AnimationMode enumeration.

See Also