Difference between revisions of "RenderTarget:getPixels"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''<translate>Available since</translate>:''' Gideros 2016.06<br/> | '''<translate>Available since</translate>:''' Gideros 2016.06<br/> | ||
+ | '''<translate>Class</translate>:''' [[Special:MyLanguage/RenderTarget|RenderTarget]]<br/> | ||
=== <translate>Description</translate> === | === <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> |
Revision as of 09:28, 24 August 2018
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