Sprite:getSize

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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