background_save

Save a background to disc.

Syntax:

background_save(back, fname);


Argument Description
ind The index of the background to save.
fname The filename for the saved background.


Returns: N/A


Description

This function can be used to save any background to disc, giving it the specified filename. This image must be a *.png file.

NOTE: Depending on the target platform that is chosen you are limited as to where you can save and load files from. See Reference - Files for more information.




Example:

background_save(bck, "Custom_Back.png");

The above code will save the background indexed in the variable "bck" as a *.png.


Back: Backgrounds
Next: background_delete
© Copyright YoYo Games Ltd. 2018 All Rights Reserved