Revision as of 00:35, 4 February 2021 by MoKaLux (talk | contribs) (a little bit of update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6
Class: Sprite


Returns the width of the sprite in pixels. The width is calculated based on the bounds of the content of the sprite.

(number) = Sprite:getWidth(withoutTransform)

If the parameter withoutTransform is set to true, the original width is returned without transformations.


withoutTransform: (boolean) if true, returns the width of the Sprite without transformations else returns the transformed width optional

Return values

Returns (number) the width of the sprite