Sprite:getHeight

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 2011.6
Class: Sprite

Description

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

(number) = Sprite:getHeight(withoutTransform)


If withoutTransform is set to true, the original height is returned without accounting for transformations.

Parameters

withoutTransform: (boolean) if true, returns the height without transformation, else returns the transformed height optional

Return values

Returns (number) the height of the sprite