CImage:Open CImage:SaveAs

CImage:Save


The Save method saves the CImage back to its folder.

Syntax

bResult = CImage:Save()

    On success, this method returns true.

    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 wraps an image having the full path named sPath:

 

bOk = I:Save( sPath )

-- save the image to sPath

if ( not bOk ) then

-- if not saved, then...

  Printf("%s can't be saved", sPath )

-- error message

end

 

I:delete()

-- when done with I, remove it from memory

Related Topics

CImage, SaveAs, Open, Close