Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AnimationOffset Property
See Also 
Leadtools Namespace > RasterImage Class : AnimationOffset Property



Gets or sets a value indicating the animation offset for the current frame.

Syntax

Visual Basic (Declaration) 
Public Property AnimationOffset As Point
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value As Point
 
instance.AnimationOffset = value
 
value = instance.AnimationOffset
C# 
public Point AnimationOffset {get; set;}
C++/CLI 
public:
property Point AnimationOffset {
   Point get();
   void set (Point value);
}

Return Value

A Point structure containing the animation offset for the current frame in RasterViewPerspective.TopLeft view perspective.

Example

For an example, refer to AnimationGlobalLoop

Remarks

The value of this property is used by the RasterImageAnimator class to properly update the correct portion of the target image when rendering the current frame.

GIF files can contain multiple frames of different size. The AnimationGlobalSize property contains the "global" size of the animated GIF image. Individual frames should be rendered inside this global size offseted by the value of AnimationOffset property.

When the value of this property is changed, the Changed event will fire with RasterImageChangedFlags set to RasterImageChangedFlags.AnimationProperties.

For more information, refer to Implementing Animation.

Requirements

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

See Also