Sprite:getDimensions

Revision as of 00:56, 21 August 2020 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''<translate>Available since</translate>:''' Gideros 2020.7<br/> '''<translate>Class</translate>:''' Sprite<br/> === Description ===...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2020.7
Class: Sprite

Description

Returns the width and the height of the Sprite in pixels. The dimensions are calculated based on the bounds of the content of the Sprite.

(number), (number) = Sprite:getDimensions()

Return values

Returns (number) the Sprite width
Returns (number) the Sprite height