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.

Syntax

bResult = CImage:Save()

bullet.gif    On success, this method returns bResult = true.

bullet.gif    On failure, this method returns false.

Remarks

If you are finished with the image after saving, use Close or delete to remove it from memory

Example

Suppose a CImage I exists. The following script saves it back to its original path:

bSuccess = I:Save()

-- save the image

if not bSuccess then

-- if not saved, then...

  Printf("Image can't be saved" )

-- error message

end

 

Related Topics

CImage class, SaveAs, SaveTo, Open, Close


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.