Class: Toybox.WatchUi.Bitmap
- Inherits:
-
Toybox.WatchUi.Drawable
Overview
Bitmap is the class representation of a bitmap resource.
A Bitmap can be constructed using the resource compiler and loaded through the resource (Rez) module.
See Also:
Instance Method Summary collapse
-
draw(dc as Graphics.Dc) as Void
Draw a Bitmap to the device context (Dc).
-
getDimensions() as [ Lang.Numeric, Lang.Numeric ]
Get the dimensions of a Bitmap.
-
initialize(options as { :rezId as Lang.ResourceId, :bitmap as Graphics.BitmapType, :identifier as Lang.Object, :locX as Lang.Numeric, :locY as Lang.Numeric, :width as Lang.Numeric, :height as Lang.Numeric, :visible as Lang.Boolean })
Constructor.
-
setBitmap(bitmap as Graphics.BitmapType or Lang.ResourceId or Null) as Void
Set the resource associated with the Bitmap.
Instance Method Details
draw(dc as Graphics.Dc) as Void
Draw a Bitmap to the device context (Dc).
getDimensions() as [ Lang.Numeric, Lang.Numeric ]
Get the dimensions of a Bitmap.
initialize(options as { :rezId as Lang.ResourceId, :bitmap as Graphics.BitmapType, :identifier as Lang.Object, :locX as Lang.Numeric, :locY as Lang.Numeric, :width as Lang.Numeric, :height as Lang.Numeric, :visible as Lang.Boolean })
Constructor
setBitmap(bitmap as Graphics.BitmapType or Lang.ResourceId or Null) as Void
Set the resource associated with the Bitmap.
Note:
A null
value passed for the bitmap parameter is only supported with ConnectIQ 5.0.0 and later.