Leadtools Namespace > RasterImage Class : AnimationOffset Property |
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;}
@property (nonatomic, assign) LeadPoint animationOffset;
public LeadPoint getAnimationOffset()
get_AnimationOffset();
set_AnimationOffset(value);
Object.defineProperty('AnimationOffset');
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.
RasterImage Class
RasterImage Members
AnimationWaitUserInput Property
AnimationDelay Property
AnimationBackground Property
AnimationDisposalMethod Property
AnimationGlobalLoop Property
AnimationGlobalSize Property
AnimationGlobalBackground Property
RasterImageAnimator Class
Implementing Animation