←Select platform

AnimationOffset Property

Summary

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

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public Leadtools.LeadPoint AnimationOffset {get; set;} 
Public Property AnimationOffset As Leadtools.LeadPoint 
public Leadtools.LeadPoint AnimationOffset {get; set;} 
@property (nonatomic, assign) LeadPoint animationOffset 
public LeadPoint getAnimationOffset() 
  
get_AnimationOffset(); 
set_AnimationOffset(value); 
Object.defineProperty('AnimationOffset');  
public: 
property Leadtools.LeadPoint AnimationOffset { 
   Leadtools.LeadPoint get(); 
   void set (    Leadtools.LeadPoint ); 
} 

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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools Assembly
Click or drag to resize