Leadtools Namespace > RasterImageAnimator Class : RasterImageAnimator Constructor |
public RasterImageAnimator( RasterImage targetImage, RasterImage animatedImage )
'Declaration Public Function New( _ ByVal targetImage As RasterImage, _ ByVal animatedImage As RasterImage _ )
'Usage Dim targetImage As RasterImage Dim animatedImage As RasterImage Dim instance As New RasterImageAnimator(targetImage, animatedImage)
public RasterImageAnimator( RasterImage targetImage, RasterImage animatedImage )
function RasterImageAnimator( targetImage , animatedImage )
public: RasterImageAnimator( RasterImage^ targetImage, RasterImage^ animatedImage )
targetImage must be allocated before calling this method
If you pass null (Nothing in VisualBasic) in the animatedImage parameter, 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.
The RasterImageAnimator class also implements the System.IDisposable interface, it is recommended that you follow the standard .NET dispose pattern when using the RasterImageAnimator class. For more information, refer to System.IDisposable.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2