Difference between revisions of "Sprite:getWidth"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Returns the width of the sprite, in pixels. The width is calculated based on the<br /> bounds o...")
 
Line 8: Line 8:
 
If the parameter "true" is passed, the original width is returned without transformations.
 
If the parameter "true" is passed, the original width is returned without transformations.
 
<source lang="lua">
 
<source lang="lua">
(any) (any), = Sprite:getWidth(withoutTransform,)
+
(any), (any) = Sprite:getWidth(withoutTransform)
 
</source>
 
</source>
'''withoutTransform:''' (boolean) If true, return the width of the Sprite without transformations else return the transformed width '''optional'''<br/>
+
'''withoutTransform''': (boolean) If true, return the width of the Sprite without transformations else return the transformed width '''optional'''<br/>
 
'''Returns''' (any) Width of the sprite.<br/>
 
'''Returns''' (any) Width of the sprite.<br/>
 
'''Returns''' (any) Width of the sprite.<br/>
 
'''Returns''' (any) Width of the sprite.<br/>

Revision as of 11:19, 23 August 2018

Available since: Gideros 2011.6

Description


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

If the parameter "true" is passed, the original width is returned without transformations.

(any), (any) = Sprite:getWidth(withoutTransform)

withoutTransform: (boolean) If true, return the width of the Sprite without transformations else return the transformed width optional
Returns (any) Width of the sprite.
Returns (any) Width of the sprite.