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 Number

Get the height of a bitmap resource.

Returns:

  • Number

    Height of the bitmap in pixels

Since:

API Level 1.0.0

getWidth() as Number

Get the width of a bitmap resource.

Returns:

  • Number

    Width of the bitmap in pixels

Since:

API Level 1.0.0

toString() as 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:

  • String

    A String representation of the BitmapResource object

Since:

API Level 1.0.0


Generated Apr 22, 2021 10:10:33 AM