save()

Description

Saves the changes made to the image.

Syntax

func save()

Parameters

None

Return value

Void

Remarks

The edited image will overwrite the original image.

The object that the current image corresponds to is deleted, the save operation fails and the exception DcsObjectNotExistException will be thrown.

See Also

discard()

Example

class ViewController: UIViewController{
    var dcsView:DcsView!
    override func viewDidLoad() {
        super.viewDidLoad()
        dcsView = DcsView(frame: CGRect(x:0,y:0,width:self.view.frame.size.width,height:self.view.frame.size.height))
        dcsView.currentView = DVE_EDITORVIEW
        dcsView.imageEditorView.save()
    }
}
Is this page helpful?

Leave a Reply

Your email address will not be published.