Table of Contents

RenderTarget:save

Available since version: Gideros 2016.08

Description:

save contents of RenderTarget as image

Syntax:

RenderTarget:save(filename [, x, y, width, height])

Parameters:

  • filename: (string) filename and path to store file, like |D|image.png
  • x: (number) x coordinate from where to start image
  • y: (number) y coordinate from where to start image
  • width: (number) width of the image to save
  • height: (number) height of the image to save