AnimatedGifConfiguration Constructor (IEnumerableIReadableBitmapData, NullableTimeSpan)

KGy SOFT Drawing Libraries Help
Initializes a new instance of the AnimatedGifConfiguration class.

Namespace:  KGySoft.Drawing.Imaging
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 6.2.0
Syntax

public AnimatedGifConfiguration(
	IEnumerable<IReadableBitmapData> frames,
	TimeSpan? delay = null
)

Parameters

frames
Type: System.Collections.GenericIEnumerableIReadableBitmapData
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 (Optional)
Type: SystemNullableTimeSpan
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

ExceptionCondition
ArgumentNullExceptionframes is .
See Also

Reference