Table of Contents

Sprite:getHeight

Available since version: 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.

Syntax:

(number) = Sprite:getHeight([withoutTransform])

Parameters:

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

Return value:

  • number: Height of the sprite.