AnimatedGifConfigurationAnimationMode Property
Gets or sets the looping mode of the animation.
Default value:
Repeat.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
public AnimationMode AnimationMode { get; set; }
Public Property AnimationMode As AnimationMode
Get
Set
public:
property AnimationMode AnimationMode {
AnimationMode get ();
void set (AnimationMode value);
}
member AnimationMode : AnimationMode with 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.