Difference between revisions of "RenderTarget:getPixels"
From GiderosMobile
(remove language stuff) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' Gideros 2016.06<br/> | |
− | ''' | + | '''Class:''' [[RenderTarget]]<br/> |
− | ''' | + | |
− | === | + | === Description === |
− | + | Returns buffer containing color and alpha data from provided rectangle. | |
<source lang="lua"> | <source lang="lua"> | ||
(buffer) = RenderTarget:getPixels(x,y,w,h) | (buffer) = RenderTarget:getPixels(x,y,w,h) | ||
</source> | </source> | ||
− | === | + | |
− | '''x''': (number) | + | === Parameters === |
− | '''y''': (number) | + | '''x''': (number) x coordinate of pixel<br/> |
− | '''w''': (number) | + | '''y''': (number) y coordinate of pixel<br/> |
− | '''h''': (number) | + | '''w''': (number) width of rectangle to include in buffer<br/> |
− | === | + | '''h''': (number) height of rectangle to include in buffer<br/> |
− | ''' | + | |
+ | === Return values === | ||
+ | '''Returns''' (buffer) buffer with color and alpha data<br/> | ||
{{RenderTarget}} | {{RenderTarget}} |
Revision as of 02:16, 24 December 2020
Available since: Gideros 2016.06
Class: RenderTarget
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