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


15388
15389
# File 'Monkeybrains.rb', line 15388

def getHeight()
end

getWidthToybox::Lang::Number

Get the width of a bitmap resource.

Returns:

Since:

  • 1.0.0


15394
15395
# File 'Monkeybrains.rb', line 15394

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


15404
15405
# File 'Monkeybrains.rb', line 15404

def toString()
end