Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Destroy Method
See Also 
Leadtools Namespace > RasterImageAnimator Class : Destroy Method



Invalidates this RasterImageAnimator object and returns the animated image.

Syntax

Visual Basic (Declaration)  
Public Function Destroy() As RasterImage
Visual Basic (Usage) Copy Code
Dim instance As RasterImageAnimator
Dim value As RasterImage
 
value = instance.Destroy()
C#  
public RasterImage Destroy()
C++/CLI  
public:
RasterImage^ Destroy(); 

Return Value

A RasterImage object containing the multi-frame animated image.

Example

For an example, refer to Append.

Remarks

If you pass null (Nothing in VisualBasic) in the animatedImage parameter for the RasterImageAnimator constructor, you can use the Append method to add frames to the multi-frame image during the animation. This is useful if you want to play an animated file as it is being loaded. If you need to reference the multi-frame image after the animation, you can call the Destroy method before you dispose this RasterImageAnimator object.

After you call Destroy, this RasterImageAnimator object is invalid and you should only call the Dispose method afterwards.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also