Class: Toybox::WatchUi::BitmapResource

Inherits:
Lang::Object show all

Overview

A representation of a bitmap resource.

BitmapResource objects are returned by the loadResource() method.

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, weak

Instance Method Details

getHeightToybox::Lang::Number

Get the height of a bitmap resource.

Returns:

Since:

  • 1.0.0


15422
15423
# File 'Monkeybrains.rb', line 15422

def getHeight()
end

getWidthToybox::Lang::Number

Get the width of a bitmap resource.

Returns:

Since:

  • 1.0.0


15428
15429
# File 'Monkeybrains.rb', line 15428

def getWidth()
end

toStringToybox::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:

Since:

  • 1.0.0


15438
15439
# File 'Monkeybrains.rb', line 15438

def toString()
end