Class: Toybox.WatchUi.AnimationResource
- Inherits:
-
Toybox.Lang.Object
Overview
A representation of an animation resource.
AnimationResource objects are returned by the loadResource() method.
Instance Method Summary collapse
-
getColorDepth() as Lang.Number
Get the color depth in terms of bit/pixel of the animation resource.
-
getFrameRate() as Lang.Number
Get the target frame rate of an animation resource.
-
getHeight() as Lang.Number
Get the height of an animation resource.
-
getNumberOfFrames() as Lang.Number
Get the number of frames of an animation resource.
-
getWidth() as Lang.Number
Get the width of an animation resource.
-
toString() as Lang.String
Get info about an animation resource as a String.
Instance Method Details
getColorDepth() as Lang.Number
Get the color depth in terms of bit/pixel of the animation resource.
getFrameRate() as Lang.Number
Get the target frame rate of an animation resource.
getHeight() as Lang.Number
Get the height of an animation resource.
getNumberOfFrames() as Lang.Number
Get the number of frames of an animation resource.
getWidth() as Lang.Number
Get the width of an animation resource.
toString() as Lang.String
Get info about an animation resource as a String.
The info String is formatted as "Animation X x Y" where "X" is the width of the animation and "Y" is the height.