Difference between revisions of "TextureRegion:getRegion"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2012.08.2<br/>
+
'''<translate>Available since</translate>:''' Gideros 2012.08.2<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate><br />
 
<translate><br />
 
Returns the coordinates of the region.<br />
 
Returns the coordinates of the region.<br />
Line 9: Line 9:
 
(number), (number), (number), (number), (number), (number), (number), (number) = TextureRegion:getRegion(baseCoordiniates)
 
(number), (number), (number), (number), (number), (number), (number), (number) = TextureRegion:getRegion(baseCoordiniates)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''baseCoordiniates''': (boolean) <translate>Returns values in base (@1) size</translate> '''optional'''<br/>
 
'''baseCoordiniates''': (boolean) <translate>Returns values in base (@1) size</translate> '''optional'''<br/>
=== Return values ===
+
=== <translate>Return values</translate> ===
'''Returns''' (number) <translate>x coordinate from texture</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>x coordinate from texture</translate><br/>
'''Returns''' (number) <translate>y coordinate from texture</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>y coordinate from texture</translate><br/>
'''Returns''' (number) <translate>width of region</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>width of region</translate><br/>
'''Returns''' (number) <translate>height of region</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>height of region</translate><br/>
'''Returns''' (number) <translate>left trim</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>left trim</translate><br/>
'''Returns''' (number) <translate>top trim</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>top trim</translate><br/>
'''Returns''' (number) <translate>right trim</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>right trim</translate><br/>
'''Returns''' (number) <translate>bottom trim</translate><br/>
+
'''<translate>Returns</translate>''' (number) <translate>bottom trim</translate><br/>

Revision as of 07:29, 24 August 2018

Available since: Gideros 2012.08.2

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