LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

AnimationOffset Property






Gets or sets a value indicating the animation offset for the current frame. .NET support Silverlight support WinRT support
Syntax
public LeadPoint AnimationOffset {get; set;}
'Declaration
 
Public Property AnimationOffset As LeadPoint
'Usage
 
Dim instance As RasterImage
Dim value As LeadPoint
 
instance.AnimationOffset = value
 
value = instance.AnimationOffset
public LeadPoint AnimationOffset {get; set;}
 get_AnimationOffset();
set_AnimationOffset(value);
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.
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.

Example
For an example, refer to AnimationGlobalLoop
Requirements

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

See Also

Reference

RasterImage Class
RasterImage Members
AnimationWaitUserInput Property
AnimationDelay Property
AnimationBackground Property
AnimationDisposalMethod Property
AnimationGlobalLoop Property
AnimationGlobalSize Property
AnimationGlobalBackground Property
RasterImageAnimator Class
Implementing Animation

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.