Class: Toybox::WatchUi::BitmapResource

Inherits:
Lang::Object show all

Overview

A representation of a bitmap resource.

BitmapReource 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


14018
14019
# File 'Monkeybrains.rb', line 14018

def getHeight()
end

getWidthToybox::Lang::Number

Get the width of a bitmap resource.

Returns:

Since:

  • 1.0.0


14024
14025
# File 'Monkeybrains.rb', line 14024

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


14034
14035
# File 'Monkeybrains.rb', line 14034

def toString()
end