AnimatedGifConfiguration(FuncIReadableBitmapData, FuncNullableTimeSpan) 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(
	Func<IReadableBitmapData?> getNextFrame,
	Func<TimeSpan?> getNextDelay


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.

See Also