appendImage()

Description

Appends images to DcsBuffer.

Syntax

- (void) appendImage: (DcsImage *) image

Parameters

image:DcsImage The image to be added into the buffer.

Return value

Void

Exceptions

Circumstance Exception thrown
Image is nil. DcsValueNotValidException
Image is not DcsImage (or DcsDocument). DcsTypeNotValidException

Example


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


    UIImage *Rimg = [UIImage imageNamed:@"barcode"];
    DcsImage *DcsRimg = [[DcsImage alloc]init:Rimg];
    [self.dcsView.buffer appendImage: DcsRimg];
}

@end