AnimatedGifConfiguration(FuncIReadableBitmapData, FuncNullableTimeSpan) Constructor
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.0.0-preview.1
public AnimatedGifConfiguration(
Func<IReadableBitmapData?> getNextFrame,
Func<TimeSpan?> getNextDelay
)
Public Sub New (
getNextFrame As Func(Of IReadableBitmapData),
getNextDelay As Func(Of TimeSpan?)
)
public:
AnimatedGifConfiguration(
Func<IReadableBitmapData^>^ getNextFrame,
Func<Nullable<TimeSpan>>^ getNextDelay
)
new :
getNextFrame : Func<IReadableBitmapData> *
getNextDelay : Func<Nullable<TimeSpan>> -> AnimatedGifConfiguration
Parameters
- getNextFrame FuncIReadableBitmapData
- A delegate that returns the next frame of the animation. It should return after the last frame.
Frames are not disposed by the encoder so the caller can dispose them once the subsequent frame is requested.
- getNextDelay FuncNullableTimeSpan
- A delegate that returns the delay for the next frame. If it returns sooner than getNextFrame, then
the last non- value will be re-used for the remaining frames. If it returns for the first time, then
each frame will use a default 100 ms delay.