toColor()

Description

Converts to a 24-bit RGB document.

Please note that this function is built-in behind the colorModel tool item.

Syntax

- (void) toColor

Parameters

None

Return value

void

Remarks

If it's already a 24-bit RGB document, do nothing. If not, convert it to a 24-bit RGB document.

Example


@interface ViewController ()<DcsUIDocumentEditorViewDelegate>{
    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.documentEditorView.delegate = self; 
    [self.view addSubview:dcsView];

    [self.dcsView.documentEditorView toColor];
}

@end

See Also

toGrey()
toBlackWhite()

Is this page helpful?

Leave a Reply

Your email address will not be published.