AliyunICanvasView
@interface AliyunICanvasView
* The canvas view.
-
* The callback.
Declaration
Objective-C
@property (nonatomic, weak) id<AliyunICanvasViewDelegate> delegate;
-
* Whether the drawing can go beyond the border. Default is NO.
Declaration
Objective-C
@property (nonatomic) BOOL enableCrossBorder;
-
* The paint brush.
Declaration
Objective-C
@property (nonatomic, strong) AliyunIPaint *paint;
-
* The data of lines
Declaration
Objective-C
@property (nonatomic, copy) NSArray<AliyunICanvasLineData *> *lines;
-
* Initializer.
Declaration
Objective-C
- (instancetype)initWithFrame:(CGRect)frame paint:(AliyunIPaint *)paint;
Parameters
frame
The canvas frame.
paint
The paint brush.
Return Value
self
-
* Changes the paint brush.
Declaration
Objective-C
- (void)changePaint:(AliyunIPaint *)paint;
Parameters
paint
The paint brush.
-
* Clears the canvas. This operation is irreversible.
Declaration
Objective-C
- (void)remove;
-
* Undoes the last stroke.
Declaration
Objective-C
- (void)undo;
-
* Redoes the last stroke.
Declaration
Objective-C
- (void)redo;
-
* Undoes all strokes.
Declaration
Objective-C
- (void)undoAllChanges;
-
* Completes the drawing.
Declaration
Objective-C
- (UIImage *)complete;
Return Value
The doodle image.