Difference between revisions of "Sprite:getWidth"

From GiderosMobile
Line 17: Line 17:
 
'''<translate>Returns</translate>''' (any) <translate>Width of the sprite.</translate><br/>
 
'''<translate>Returns</translate>''' (any) <translate>Width of the sprite.</translate><br/>
 
'''<translate>Returns</translate>''' (any) <translate>Width of the sprite.</translate><br/>
 
'''<translate>Returns</translate>''' (any) <translate>Width of the sprite.</translate><br/>
 +
 +
{{Sprite}}

Revision as of 01:12, 4 December 2019


Available since: Gideros 2011.6
Class: Sprite

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)

Parameters

withoutTransform: (boolean) If true, return the width of the Sprite without transformations else return the transformed width optional

Return values

Returns (any) Width of the sprite.
Returns (any) Width of the sprite.