Class: Toybox.Graphics.BitmapTexture

Overview

An object representing a textured area with in a bitmap that can be can be used to fill a primitive drawable object.

Since:

API Level 4.0.0

Instance Method Summary collapse

Instance Method Details

initialize(options as { :bitmap as Graphics.BitmapType or Lang.Symbol, :offsetX as Lang.Number, :offsetY as Lang.Number })

Constructor

Parameters:

  • options(Lang.Dictionary)

    A dictionary representing a bitmap with an offset to be used as a texture. @option :bitmap Toybox::Graphics::BufferedBitmap, Toybox::Graphics::BitmapReference to be used as a texture. @option :offsetX Toybox::Lang::Number An x offset with in the bitmap to be mapped to the x coordinate of the origin of the primitive object. @option :offsetY Toybox::Lang::Number An y offset with in the bitmap to be mapped to the y coordinate of the origin of the primitive object.

Since:

API Level 4.0.0

setOffset(offsetX as Lang.Number, offsetY as Lang.Number) as Void

Set an offset for the texture.

Parameters:

Since:

API Level 4.0.0


Generated Nov 29, 2021 1:34:35 PM