Class: Toybox.WatchUi.BitmapResource

Overview

A representation of a bitmap resource.

BitmapResource objects are returned by the loadResource() method.

Since:

API Level 1.0.0

Instance Method Summary collapse

Instance Method Details

getHeight() as Lang.Number

Get the height of a bitmap resource.

Returns:

Since:

API Level 1.0.0

getWidth() as Lang.Number

Get the width of a bitmap resource.

Returns:

Since:

API Level 1.0.0

toString() as Lang.String

Get info about a bitmap resource as a String.

The info String is formatted as "Bitmap X x Y" where "X" is the width of the bitmap and "Y" is the height.

Returns:

  • Lang.String

    A String representation of the BitmapResource object

Since:

API Level 1.0.0


Generated Apr 17, 2024 9:40:39 AM