AnimatedGifConfiguration(IEnumerableIReadableBitmapData, NullableTimeSpan) Constructor
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.0.0-preview.1
public AnimatedGifConfiguration(
IEnumerable<IReadableBitmapData> frames,
TimeSpan? delay = null
)
Public Sub New (
frames As IEnumerable(Of IReadableBitmapData),
Optional delay As TimeSpan? = Nothing
)
public:
AnimatedGifConfiguration(
IEnumerable<IReadableBitmapData^>^ frames,
Nullable<TimeSpan> delay = nullptr
)
new :
frames : IEnumerable<IReadableBitmapData> *
?delay : Nullable<TimeSpan>
(* Defaults:
let _delay = defaultArg delay null
*)
-> 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.
- 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: .