AnimatedGifConfiguration(IEnumerableIReadableBitmapData, IEnumerableTimeSpan) Constructor
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.0.0-preview.1
public AnimatedGifConfiguration(
IEnumerable<IReadableBitmapData> frames,
IEnumerable<TimeSpan>? delays
)
Public Sub New (
frames As IEnumerable(Of IReadableBitmapData),
delays As IEnumerable(Of TimeSpan)
)
public:
AnimatedGifConfiguration(
IEnumerable<IReadableBitmapData^>^ frames,
IEnumerable<TimeSpan>^ delays
)
new :
frames : IEnumerable<IReadableBitmapData> *
delays : IEnumerable<TimeSpan> -> AnimatedGifConfiguration
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.
- 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.