Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AnimationGlobalSize Property
See Also 
Leadtools Namespace > RasterImage Class : AnimationGlobalSize Property



Gets or sets a value indicating the global size of the animation image.

Syntax

Visual Basic (Declaration) 
Public Property AnimationGlobalSize As Size
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value As Size
 
instance.AnimationGlobalSize = value
 
value = instance.AnimationGlobalSize
C# 
public Size AnimationGlobalSize {get; set;}
C++/CLI 
public:
property Size AnimationGlobalSize {
   Size get();
   void set (Size value);
}

Return Value

A Size structure that indicates the global size of the animation image. Default value is 0,0 meaning same size as the image

Example

For an example, refer to AnimationGlobalLoop

Remarks

The 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 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.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also