Difference between revisions of "Sprite:getHeight"

From GiderosMobile
Line 16: Line 16:
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (number) <translate>Height of the sprite.</translate><br/>
 
'''<translate>Returns</translate>''' (number) <translate>Height of the sprite.</translate><br/>
 +
 +
{{Sprite}}

Revision as of 00:08, 4 December 2019


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.

If "true" is passed to this method, the original height is returned without accounting for transformations.

(number) = Sprite:getHeight(withoutTransform)

Parameters

withoutTransform: (boolean) If true, return the height without transformation, else return the transformed height optional

Return values

Returns (number) Height of the sprite.