Function savepicture
#include <macaw.h>int savepicture(int p, const char *path);
Saves a picture as a .pxl file, which Paint can open.
Parameters
pint- The picture's number.
pathconst char *- The file to save it as, from your program's folder unless it starts with
/.
Returns int
1 if it was saved, or 0 if it couldn't be.
In Pictures, with newpicture, loadpicture, freepicture, picturewidth, pictureheight, drawpicture, drawpart, drawinto, drawpictureex, drawpartex, parsepicture, decodepicture, decodepicturefile, importpicture, importpicturefile, pictureget, pictureset, picturesize, pictureclear, picturecopy, picturegetrgb, picturesetrgb.