Difference between revisions of "RenderTarget:save"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2016.08<br/>
 
'''Available since:''' Gideros 2016.08<br/>
 
=== Description ===
 
=== Description ===
save contents of RenderTarget as image
+
<translate>save contents of RenderTarget as image</translate>
 
<source lang="lua">
 
<source lang="lua">
 
  RenderTarget:save(filename,x,y,width,height)
 
  RenderTarget:save(filename,x,y,width,height)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''filename''': (string) filename and path to store file, like |D|image.png <br/>
+
'''filename''': (string) <translate>filename and path to store file, like |D|image.png</translate> <br/>
'''x''': (number) x coordinate from where to start image '''optional'''<br/>
+
'''x''': (number) <translate>x coordinate from where to start image</translate> '''optional'''<br/>
'''y''': (number) y coordinate from where to start image '''optional'''<br/>
+
'''y''': (number) <translate>y coordinate from where to start image</translate> '''optional'''<br/>
'''width''': (number) width of the image to save '''optional'''<br/>
+
'''width''': (number) <translate>width of the image to save</translate> '''optional'''<br/>
'''height''': (number) height of the image to save '''optional'''<br/>
+
'''height''': (number) <translate>height of the image to save</translate> '''optional'''<br/>

Revision as of 14:34, 23 August 2018

Available since: Gideros 2016.08

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