Visual Basic (Declaration) | |
---|---|
Public Property AnimationGlobalSize As LeadSize |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As RasterImage Dim value As LeadSize instance.AnimationGlobalSize = value value = instance.AnimationGlobalSize |
C# | |
---|---|
public LeadSize AnimationGlobalSize {get; set;} |
C++/CLI | |
---|---|
public: property LeadSize AnimationGlobalSize { LeadSize get(); void set ( LeadSize value); } |
Property Value
A LeadSize structure that indicates the global size of the animation image. Default value is 0,0 meaning same size as the imageThe value of this property is used by the RasterImageAnimator class to properly update the correct portion of the target image.
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.
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
Reference
RasterImage ClassRasterImage Members
AnimationWaitUserInput Property
AnimationOffset Property
AnimationDelay Property
AnimationBackground Property
AnimationDisposalMethod Property
AnimationGlobalLoop Property
AnimationGlobalBackground Property
RasterImageAnimator Class
Implementing Animation