Difference between revisions of "RenderTarget:getPixels"

From GiderosMobile
Line 15: Line 15:
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (buffer) <translate>buffer with color and alpha data</translate><br/>
 
'''<translate>Returns</translate>''' (buffer) <translate>buffer with color and alpha data</translate><br/>
 +
 +
{{RenderTarget}}

Revision as of 22:37, 3 December 2019


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