AliyunICanvasView

@interface AliyunICanvasView

画布view

  • 回调

    Declaration

    Objective-C

    @property (nonatomic, weak) id<AliyunICanvasViewDelegate> delegate;
  • 是否允许越界画图,默认不允许

    Declaration

    Objective-C

    @property (nonatomic) BOOL enableCrossBorder;
  • 画笔

    Declaration

    Objective-C

    @property (nonatomic, strong) AliyunIPaint *paint;
  • 线数据

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<AliyunICanvasLineData *> *lines;
  • 初始化方法

    Declaration

    Objective-C

    - (instancetype)initWithFrame:(CGRect)frame paint:(AliyunIPaint *)paint;

    Parameters

    frame

    画板frame

    paint

    画笔

    Return Value

    self

  • 更改画笔配置

    Declaration

    Objective-C

    - (void)changePaint:(AliyunIPaint *)paint;

    Parameters

    paint

    画笔

  • 清空所有线条(不可恢复)

    Declaration

    Objective-C

    - (void)remove;
  • 撤销上一步

    Declaration

    Objective-C

    - (void)undo;
  • 恢复上一步

    Declaration

    Objective-C

    - (void)redo;
  • 撤销本次涂鸦所有的操作

    Declaration

    Objective-C

    - (void)undoAllChanges;
  • 完成

    Declaration

    Objective-C

    - (UIImage *)complete;

    Return Value

    涂鸦图片