AnimatedImageDrawable
(
imageResource
,
height
,
keyFrameWidth
,
keyFrameHeight
,
options
)
- Parameters:
-
imageResource <ImageResource>
The imageResource representing the sprite sheet which is used for the AnimatedImageDrawable. -
height <float>
The height of the AnimatedImageDrawable, in SDUs. The width is set at creation time, width is calculated according to the aspect ratio of the underlying key frame images. -
keyFrameWidth <int>
The width of the key frame images in the sprite sheet, in pixels. -
keyFrameHeight <int>
The height of the key frame images in the sprite sheet, in pixels. -
options <object>
Setup-Parameters to customize additional object properties.
Accepted options-properties are- keyFrame : The start keyframe. If not specified, the value defaults to 0.
- enabled
- horizontalAnchor
- verticalAnchor
- offsetX
- offsetY
- zOrder
- rotation
- scale
- opacity
- onClick
- onFinish
- roll
- tilt
- heading