Difference between revisions of "RenderTarget:save"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2016.08<br/> === Description === save contents of RenderTarget as image <source lang="lua"> = RenderTarget:save(filenamexywidthheight,...") |
|||
Line 4: | Line 4: | ||
save contents of RenderTarget as image | save contents of RenderTarget as image | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | RenderTarget:save(filename,x,y,width,height) | |
</source> | </source> | ||
− | '''filename | + | '''filename''': (string) filename and path to store file, like |D|image.png ''''''<br/> |
− | '''x | + | '''x''': (number) x coordinate from where to start image '''optional'''<br/> |
− | '''y | + | '''y''': (number) y coordinate from where to start image '''optional'''<br/> |
− | '''width | + | '''width''': (number) width of the image to save '''optional'''<br/> |
− | '''height | + | '''height''': (number) height of the image to save '''optional'''<br/> |
Revision as of 10:21, 23 August 2018
Available since: Gideros 2016.08
Description
save contents of RenderTarget as image
RenderTarget:save(filename,x,y,width,height)
'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