save()

Description

Saves the changes made to the image.

Syntax

- (void) 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.

Example


@interface ViewController ()<DcsUIImageEditorViewDelegate>{
    DcsView *dcsView;
}
@end
 
@implementation ViewController
 
- (void)viewDidLoad {
    [super viewDidLoad];
     
    dcsView = [[DcsView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
 
    dcsView.imageEditorView.delegate = self; 
    [self.view addSubview:dcsView];

    [self.dcsView.imageEditorView save];
}

@end

See Also

discard()

Is this page helpful?

Leave a Reply

Your email address will not be published.