Class: Toybox.WatchUi.AnimationResource

Overview

A representation of an animation resource.

AnimationResource objects are returned by the loadResource() method.

Since:

API Level 3.1.0

Supported Devices:

Instance Method Summary collapse

Instance Method Details

getColorDepth() as Lang.Number

Get the color depth in terms of bit/pixel of the animation resource.

Returns:

Since:

API Level 3.2.0

getFrameRate() as Lang.Number

Get the target frame rate of an animation resource.

Returns:

  • Lang.Number

    Frame rate of the animation in seconds

Since:

API Level 3.1.0

getHeight() as Lang.Number

Get the height of an animation resource.

Returns:

Since:

API Level 3.1.0

getNumberOfFrames() as Lang.Number

Get the number of frames of an animation resource.

Returns:

Since:

API Level 3.1.0

getWidth() as Lang.Number

Get the width of an animation resource.

Returns:

Since:

API Level 3.1.0

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.

Returns:

  • Lang.String

    A String representation of the AnimationResource object

Since:

API Level 3.1.0


Generated Apr 17, 2024 9:40:39 AM