Skip to main content

TdxCustomSmartImage.StopAnimation Method

Stops the animation of the stored GIF image.

Declaration

procedure StopAnimation;

Remarks

Call this procedure to pause the animation of a GIF image (i.e., consecutive rendering of image frames) in progress. The animation playback stops at the currently displayed GIF frame. To resume the GIF animation playback, call the StartAnimation procedure.

The number of animation loops set for the stored GIF image playback is determined by the AnimationLoop and AnimationLoopCount property values. If the number of animation loops is limited, you can track the number of played loops and/or change the number of loops left for the animation before it stops by using the AnimationLoopIndex property.

Note

Alternatively, you can use the Animation property to control the GIF animation playback.

See Also