GifEncoderRepeatCount Property

Gets or sets the number of repetitions if creating an animation. Set a non- value to add the NETSCAPE2.0 extension to the stream and to indicate that added images should be interpreted as animation frames. Use 0 to loop the animation indefinitely. If , and images are added with 0 delay, then GDI+ handles image as a multi-layer single frame image, though some application (including browsers) still may play them as individual frames.
Default value: .

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.2.0
C#
public int? RepeatCount { get; set; }

Property Value

NullableInt32

Exceptions

ArgumentOutOfRangeExceptionvalue is less than 0.
InvalidOperationExceptionThis property cannot be set after adding the first image.

See Also