AnimatedGifConfiguration(IEnumerableIReadableBitmapData, NullableTimeSpan) Constructor

Initializes a new instance of the AnimatedGifConfiguration class.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.0.0-preview.1
C#
public AnimatedGifConfiguration(
	IEnumerable<IReadableBitmapData> frames,
	TimeSpan? delay = null
)

Parameters

frames  IEnumerableIReadableBitmapData
The collection of the frames to be added to the result animation. Disposing of the frames must be performed by the caller. GifEncoder.EncodeAnimation enumerates the collection lazily so you can pass an iterator that disposes the previous frame once the next one is queried, or you can even re-use the same bitmap data for each frames if you generate them dynamically.
delay  NullableTimeSpan  (Optional)
An optional TimeSpan to specify the delay for all frames. If , then a default 100 ms delay will be used. This parameter is optional.
Default value: .

Exceptions

See Also