Difference between revisions of "RenderTarget:save"

From GiderosMobile
Line 14: Line 14:
 
'''width''': (number) <translate>width of the image to save</translate> '''optional'''<br/>
 
'''width''': (number) <translate>width of the image to save</translate> '''optional'''<br/>
 
'''height''': (number) <translate>height of the image to save</translate> '''optional'''<br/>
 
'''height''': (number) <translate>height of the image to save</translate> '''optional'''<br/>
 +
 +
{{RenderTarget}}

Revision as of 22:38, 3 December 2019


Available since: Gideros 2016.08
Class: RenderTarget

Description

save contents of RenderTarget as image

 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 optional
y: (number) y coordinate from where to start image optional
width: (number) width of the image to save optional
height: (number) height of the image to save optional