Table of Contents

RenderTarget:getPixels

Available since version: Gideros 2016.06

Description:

Returns buffer containing color and alpha data from provided rectangle

Syntax:

(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 value:

  • buffer: buffer with color and alpha data