TuSDKPFEditPaintView Class Reference

Inherits from UIView
Declared in TuSDKPFEditPaintView.h

  paintDrawView

涂鸭视图

@property (nonatomic, readonly) TuSDKCPPaintDrawView *paintDrawView

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

  brushBar

笔刷栏视图

@property (nonatomic, readonly) TuSDKPFPaintBarView *brushBar

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

  bottomBar

底部动作栏

@property (nonatomic, readonly) TuSDKPFEditPaintBottomBar *bottomBar

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

  brushGroup

需要显示的笔刷名称列表 (如果为空将显示所有自定义笔刷)

@property (nonatomic, retain) NSArray<NSString*> *brushGroup

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

  defaultBrushSize

默认的笔刷大小 (默认: lsqMediumBrush,中等粗细)

@property (nonatomic, assign) lsqBrushSize defaultBrushSize

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

  brushScaleSize

笔刷的缩放尺寸, 默认1.5pt,范围(1-3) 笔刷的真正大小是 defaultBrushSize * brushScaleSize

@property (nonatomic, assign) CGFloat brushScaleSize

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

  minDistance

笔刷绘制时,上一点与下一点的距离最小满足多大时,才进行绘制 默认 10,范围(0-20)过小时绘制慢时会有锯齿,过大时,绘制就会出现断层

@property (nonatomic, assign) CGFloat minDistance

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

  saveLastBrush

是否保存上一次使用的笔刷 (默认: YES)

@property (nonatomic) BOOL saveLastBrush

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

  maxUndoCount

默认撤销的最大次数 (默认: 5)

@property (nonatomic, assign) NSUInteger maxUndoCount

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

  brushBarCellWidth

单元格宽度 60

@property (nonatomic) NSUInteger brushBarCellWidth

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

  brushBarHeight

单元格高度: 默认80

@property (nonatomic) NSUInteger brushBarHeight

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

– needUpdateLayout

更新布局

- (void)needUpdateLayout

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

– setImage:

设置图片

- (void)setImage:(UIImage *)image

Parameters

image

图片

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

– showOriginImage:

是否显示原图

- (void)showOriginImage:(BOOL)isShow

Parameters

isShow

yes —展示原图,no—展示涂鸦后的图片

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

– switchPaintSize

切换笔刷粗细

- (void)switchPaintSize

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h

– selectColor:

选中笔刷颜色

- (BOOL)selectColor:(NSString *)colorCode

Parameters

colorCode

颜色代号

Return Value

是否成功切换

Availability

v3.1.0

Declared In

TuSDKPFEditPaintView.h