Visual Basic (Declaration) | |
---|---|
Public Property AnimationOffset As Point |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public Point AnimationOffset {get; set;} |
Return Value
A Point structure containing the animation offset for the current frame in RasterViewPerspective.TopLeft view perspective.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.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
Reference
RasterImage ClassRasterImage Members
AnimationWaitUserInput Property
AnimationDelay Property
AnimationBackground Property
AnimationDisposalMethod Property
AnimationGlobalLoop Property
AnimationGlobalSize Property
AnimationGlobalBackground Property
RasterImageAnimator Class
Implementing Animation