Difference between revisions of "Sprite:getHeight"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Returns the height of the sprite, in pixels. The height is calculated based on the<br /> bounds...")
 
Line 8: Line 8:
 
If "true" is passed to this method, the original height is returned without accounting for transformations.
 
If "true" is passed to this method, the original height is returned without accounting for transformations.
 
<source lang="lua">
 
<source lang="lua">
(number), = Sprite:getHeight(withoutTransform,)
+
(number) = Sprite:getHeight(withoutTransform)
 
</source>
 
</source>
'''withoutTransform:''' (boolean) If true, return the height without transformation, else return the transformed height '''optional'''<br/>
+
'''withoutTransform''': (boolean) If true, return the height without transformation, else return the transformed height '''optional'''<br/>
 
'''Returns''' (number) Height of the sprite.<br/>
 
'''Returns''' (number) Height of the sprite.<br/>

Revision as of 10:19, 23 August 2018

Available since: Gideros 2011.6

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)

withoutTransform: (boolean) If true, return the height without transformation, else return the transformed height optional
Returns (number) Height of the sprite.