This is a basic command. You can use it to implement dynamic effects by scaling a single image or a frame animation consisting of multiple images.
<Image x="" y="" centerX="" centerY="" src="">
<SizeAnimation delay="" repeat="">
<Size w="" h="" time=""/>
</SizeAnimation>
</Image> Parameter | Type | Mandatory | Description |
|---|---|---|---|
delay | Number | No | Delay for executing a command, in milliseconds. The animation is played after the specified delay. |
repeat | Number | No | Number of times that an animation is played. If the value is 0, the animation is played for infinite times. |
w | Number | Yes | Image width, which is a positive integer. |
h | Number | Yes | Image height, which is a positive integer. |
time | Number | Yes | Number of milliseconds from the start frame, which cannot be less than 0. |
Create a scaled animation by scaling an image in each frame. For example, scale out an image from the size of (114,120) to (278,301) in the first interval of 600 milliseconds.
<Image x="380" y="390" centerX="139" centerY="151" src="ty.png">
<SizeAnimation>
<Size w="114" h="120" time="0"/>
<Size w="278" h="301" time="600"/>
<Size w="114" h="120" time="1200"/>
<Size w="278" h="301" time="1800"/>
</SizeAnimation>
</Image>