Sprite:getSize

From GiderosMobile
Revision as of 03:30, 24 September 2022 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2021.10<br/> '''Class:''' Sprite<br/> === Description === Returns the width and height of the sprite in pixels. The width and hei...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2021.10
Class: Sprite

Description

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

(number), (number) = Sprite:getSize()

Return values

Returns (number) the sprite width
Returns (number) the sprite height