Difference between revisions of "RenderTarget:save"
From GiderosMobile
(remove language stuff) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' Gideros 2016.08<br/> | |
− | ''' | + | '''Class:''' [[RenderTarget]]<br/> |
− | ''' | + | |
− | === | + | === Description === |
− | + | Saves content of RenderTarget as image. | |
<source lang="lua"> | <source lang="lua"> | ||
− | + | RenderTarget:save(filename,x,y,width,height) | |
</source> | </source> | ||
− | === | + | |
− | '''filename''': (string) | + | === Parameters === |
− | '''x''': (number) | + | '''filename''': (string) filename and path to store file, like |D|image.png<br/> |
− | '''y''': (number) | + | '''x''': (number) x coordinate from where to start image '''optional'''<br/> |
− | '''width''': (number) | + | '''y''': (number) y coordinate from where to start image '''optional'''<br/> |
− | '''height''': (number) | + | '''width''': (number) width of the image to save '''optional'''<br/> |
+ | '''height''': (number) height of the image to save '''optional'''<br/> | ||
{{RenderTarget}} | {{RenderTarget}} |
Revision as of 02:18, 24 December 2020
Available since: Gideros 2016.08
Class: RenderTarget
Description
Saves content 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