LEADTOOLS Windows Forms (Leadtools.WinForms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
StopAnimation Method
See Also 
Leadtools.WinForms Namespace > RasterPictureBox Class : StopAnimation Method



Stops an animation playback.

Syntax

Visual Basic (Declaration) 
Public Sub StopAnimation() 
Visual Basic (Usage)Copy Code
Dim instance As RasterPictureBox
 
instance.StopAnimation()
C# 
public void StopAnimation()
C++/CLI 
public:
void StopAnimation(); 

Example

This example will stop an animated GIF file.

Visual BasicCopy Code
Public Sub RasterPictureBox_StopAnimation(ByVal viewer As RasterPictureBox)
   viewer.StopAnimation()
End Sub
C#Copy Code
public void RasterPictureBox_StopAnimation(RasterPictureBox viewer)
{
   viewer.StopAnimation();  // suspend painting of the image 
}

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also