<PackageReference Include="System.Drawing.Common" Version="8.0.10" />

ImageAnimator

public sealed class ImageAnimator
Animates an image that has time-based frames.
public static void Animate(Image image, EventHandler onFrameChangedHandler)

Displays a multiple-frame image as an animation.

public static bool CanAnimate(Image image)

Returns a Boolean value indicating whether the specified image contains time-based frames.

public static void StopAnimate(Image image, EventHandler onFrameChangedHandler)

Terminates a running animation.

public static void UpdateFrames()

Advances the frame in all images currently being animated. The new frame is drawn the next time the image is rendered.

public static void UpdateFrames(Image image)

Advances the frame in the specified image. The new frame is drawn the next time the image is rendered. This method applies only to images with time-based frames.