CImage:Save
The Save method saves the CImage back. Alternative saving commands are SaveAs, which opens a Save dialog where you specify the name and file type, and SaveTo, which takes a string containing the path name.
bSuccess = CImage:Save() where |
bSuccess is the returned success code. On success it is true, otherwise false.
If you are finished with the image after saving, use Close or delete to remove it from memory
Suppose a CImage I exists. The following script saves it back to its original path:
|
-- save the image |
|
-- if not saved, then... |
|
-- error message |
|
|