AnimatedGifConfiguration(IEnumerableIReadableBitmapData, IEnumerableTimeSpan) Constructor

Initializes a new instance of the AnimatedGifConfiguration class.


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


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.
delays  IEnumerableTimeSpan
The collection of the delays to be used for the animation. If or empty, then a default 100 ms delay will be used for all frames. If contains less elements than frames, then the last value will be re-used for the remaining frames.


See Also