Difference between revisions of "TextureRegion:getRegion"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''<translate>Available since</translate>:''' Gideros 2012.08.2<br/>
 
'''<translate>Available since</translate>:''' Gideros 2012.08.2<br/>
 +
'''<translate>Class</translate>:''' [[Special:MyLanguage/TextureRegion|TextureRegion]]<br/>
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate><br />
 
<translate><br />

Revision as of 09:27, 24 August 2018

Available since: Gideros 2012.08.2
Class: TextureRegion

Description


Returns the coordinates of the region.
If transparent areas were trimmed during texture pack export, also reports the amount trimmed.

(number), (number), (number), (number), (number), (number), (number), (number) = TextureRegion:getRegion(baseCoordiniates)

Parameters

baseCoordiniates: (boolean) Returns values in base (@1) size optional

Return values

Returns (number) x coordinate from texture
Returns (number) y coordinate from texture
Returns (number) width of region
Returns (number) height of region
Returns (number) left trim
Returns (number) top trim
Returns (number) right trim
Returns (number) bottom trim