Difference between revisions of "Sprite:getHeight"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[Sprite]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate><br />
+
Returns the height of the sprite in pixels. The height is calculated based on the bounds of the content of the sprite.
Returns the height of the sprite, in pixels. The height is calculated based on the<br />
+
<syntaxhighlight lang="lua">
bounds of the content of the sprite.<br />
 
<br />
 
If "true" is passed to this method, the original height is returned without accounting for transformations.</translate>
 
<source lang="lua">
 
 
(number) = Sprite:getHeight(withoutTransform)
 
(number) = Sprite:getHeight(withoutTransform)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''withoutTransform''': (boolean) <translate>If true, return the height without transformation, else return the transformed height</translate> '''optional'''<br/>
+
 
=== <translate>Return values</translate> ===
+
If '''withoutTransform''' is set to true, the original height is returned without accounting for transformations.
'''<translate>Returns</translate>''' (number) <translate>Height of the sprite.</translate><br/>
+
 
 +
=== Parameters ===
 +
'''withoutTransform''': (boolean) if true, returns the height without transformation, else returns the transformed height '''optional'''<br/>
 +
 
 +
=== Return values ===
 +
'''Returns''' (number) the height of the sprite<br/>
 +
 
 +
{{Sprite}}

Latest revision as of 14:33, 13 July 2023

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