Sprite:getHeight: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
=== Description ===
=== <translate>Description</translate> ===
<translate><br />
<translate><br />
Returns the height of the sprite, in pixels. The height is calculated based on the<br />
Returns the height of the sprite, in pixels. The height is calculated based on the<br />
Line 10: Line 10:
(number) = Sprite:getHeight(withoutTransform)
(number) = Sprite:getHeight(withoutTransform)
</source>
</source>
=== Parameters ===
=== <translate>Parameters</translate> ===
'''withoutTransform''': (boolean) <translate>If true, return the height without transformation, else return the transformed height</translate> '''optional'''<br/>
'''withoutTransform''': (boolean) <translate>If true, return the height without transformation, else return the transformed height</translate> '''optional'''<br/>
=== Return values ===
=== <translate>Return values</translate> ===
'''Returns''' (number) <translate>Height of the sprite.</translate><br/>
'''<translate>Returns</translate>''' (number) <translate>Height of the sprite.</translate><br/>

Revision as of 06:27, 24 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)

Parameters

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

Return values

Returns (number) Height of the sprite.