adjustBrightness()

Description

Adjusts the brightness of an image in the editor.

Syntax

- (void) adjustBrightness: (NSInteger) brightness

Parameters

(NSInteger) brightness: the amount to increase/decrease the brightness by, ranging from -100 to 100. Negative values indicate decreasing brightness while positive values indicate increasing brightness. Each adjustment made to the image is based on the current brightness.

Return value

void

Exception

Circumstance Exception thrown
The value you set is not between -100 and 100. DcsValueOutOfRangeException

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 adjustBrightness:10];
}

@end