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



Gets or sets a value indicating the animation offset for the current frame. Supported in Silverlight, Windows Phone 7

Syntax

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

Property Value

A LeadPoint 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 Leadtools.RasterImage.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 Leadtools.RasterImage.AnimationOffset property.

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

For more information, refer to Implementing Animation.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7

See Also