Class: Toybox.Graphics.BitmapReference

Overview

Object that references a bitmap resource allocated from the graphics memory pool

Since:

API Level 4.0.0

Instance Method Summary collapse

Instance Method Details

getHeight() as Lang.Number

Load the resource, then get the height of a bitmap resource referenced

Returns:

Since:

API Level 4.0.0

Throws:

  • (Lang.OutOfGraphicsMemory)

    Thrown if resource cannot be loaded or restored because there isn't enough free pool to load the resource

getWidth() as Lang.Number

Load the resource, then get the width of a bitmap resource referenced

Returns:

Since:

API Level 4.0.0

Throws:

  • (Lang.OutOfGraphicsMemory)

    Thrown if resource cannot be loaded or restored because there isn't enough free pool to load the resource


Generated May 31, 2023 8:48:50 AM