Difference between revisions of "RenderTarget:getPixels"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2016.06<br/>
+
'''<translate>Available since</translate>:''' Gideros 2016.06<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate>Returns buffer containing color and alpha data from provided rectangle</translate>
 
<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 ===
+
=== <translate>Parameters</translate> ===
 
'''x''': (number) <translate>x coordinate of pixel</translate> <br/>
 
'''x''': (number) <translate>x coordinate of pixel</translate> <br/>
 
'''y''': (number) <translate>y coordinate of pixel</translate> <br/>
 
'''y''': (number) <translate>y coordinate of pixel</translate> <br/>
 
'''w''': (number) <translate>width of rectangle to include in buffer</translate> <br/>
 
'''w''': (number) <translate>width of rectangle to include in buffer</translate> <br/>
 
'''h''': (number) <translate>height of rectangle to include in buffer</translate> <br/>
 
'''h''': (number) <translate>height of rectangle to include in buffer</translate> <br/>
=== Return values ===
+
=== <translate>Return values</translate> ===
'''Returns''' (buffer) <translate>buffer with color and alpha data</translate><br/>
+
'''<translate>Returns</translate>''' (buffer) <translate>buffer with color and alpha data</translate><br/>

Revision as of 07:28, 24 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