Difference between revisions of "RenderTarget:getPixels"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2016.06<br/>
 
'''Available since:''' Gideros 2016.06<br/>
 
=== Description ===
 
=== Description ===
Returns buffer containing color and alpha data from provided rectangle
+
<translate>Returns buffer containing color and alpha data from provided rectangle</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(buffer) = RenderTarget:getPixels(x,y,w,h)
 
(buffer) = RenderTarget:getPixels(x,y,w,h)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''x''': (number) x coordinate of pixel <br/>
+
'''x''': (number) <translate>x coordinate of pixel</translate> <br/>
'''y''': (number) y coordinate of pixel <br/>
+
'''y''': (number) <translate>y coordinate of pixel</translate> <br/>
'''w''': (number) width of rectangle to include in buffer <br/>
+
'''w''': (number) <translate>width of rectangle to include in buffer</translate> <br/>
'''h''': (number) height of rectangle to include in buffer <br/>
+
'''h''': (number) <translate>height of rectangle to include in buffer</translate> <br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (buffer) buffer with color and alpha data<br/>
+
'''Returns''' (buffer) <translate>buffer with color and alpha data</translate><br/>

Revision as of 13:34, 23 August 2018

Available since: Gideros 2016.06

Description

Returns buffer containing color and alpha data from provided rectangle

(buffer) = RenderTarget:getPixels(x,y,w,h)

Parameters

x: (number) x coordinate of pixel
y: (number) y coordinate of pixel
w: (number) width of rectangle to include in buffer
h: (number) height of rectangle to include in buffer

Return values

Returns (buffer) buffer with color and alpha data