RenderTarget:getPixels

From GiderosMobile
Revision as of 10:04, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2016.06<br/> === Description === Returns buffer containing color and alpha data from provided rectangle <source lang="lua"> (buffer),...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2016.06

Description

Returns buffer containing color and alpha data from provided rectangle

(buffer), = RenderTarget:getPixels(xywh,)

'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 '
Returns (buffer) buffer with color and alpha data