TuSDKPFEditPaintViewController Class Reference

Inherits from TuSDKCPImageResultController
Conforms to TuSDKPFPaintBarViewDelegate
Declared in TuSDKPFEditPaintViewController.h

Overview

涂抹编辑控制器

  paintView

默认样式视图 (如果覆盖 paintView 方法,实现了自己的视图,paintView == nil)

@property (nonatomic, readonly) TuSDKPFEditPaintView *paintView

Availability

v3.1.0

Declared In

TuSDKPFEditPaintViewController.h

  delegate

涂抹编辑控制器委托

@property (nonatomic, weak) id<TuSDKPFEditPaintViewControllerDelegate> delegate

Availability

v3.1.0

Declared In

TuSDKPFEditPaintViewController.h

  viewClazz

视图类 (默认:TuSDKPFEditPaintView, 需要继承 TuSDKPFEditPaintView)

@property (nonatomic, strong) Class viewClazz

Availability

v3.1.0

Declared In

TuSDKPFEditPaintViewController.h

  brushBarCellWidth

单元格宽度

@property (nonatomic) NSUInteger brushBarCellWidth

Availability

v3.1.0

Declared In

TuSDKPFEditPaintViewController.h

  brushBarHeight

单元格高度

@property (nonatomic) NSUInteger brushBarHeight

Availability

v3.1.0

Declared In

TuSDKPFEditPaintViewController.h

  brushBarCellClazz

单元格视图类 (默认:TuSDKPFBrushTableItemCell, 需要继承 TuSDKPFBrushTableItemCell)

@property (nonatomic, strong) Class brushBarCellClazz

Availability

v3.1.0

Declared In

TuSDKPFEditPaintViewController.h

  brushGroup

需要显示的笔刷名称列表 (如果为空将显示所有自定义笔刷) 默认 @[@“#f9f9f9”, @“#2b2b2b”, @“#ff1d12”, @“#fbf606”, @“#14e213”, @“#199bff”, @“#8c06ff”]

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

Availability

v3.1.0

Declared In

TuSDKPFEditPaintViewController.h

  defaultBrushSize

默认的笔刷大小 (默认: lsqMediumBrush,中等粗细) 2.0pt (small - 1.0pt; large – 4.0pt)

@property (nonatomic, assign) lsqBrushSize defaultBrushSize

Availability

v3.1.0

Declared In

TuSDKPFEditPaintViewController.h

  brushScaleSize

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

@property (nonatomic, assign) CGFloat brushScaleSize

Availability

v3.1.0

Declared In

TuSDKPFEditPaintViewController.h

  minDistance

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

@property (nonatomic, assign) CGFloat minDistance

Availability

v3.1.0

Declared In

TuSDKPFEditPaintViewController.h

  saveLastBrush

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

@property (nonatomic) BOOL saveLastBrush

Availability

v3.1.0

Declared In

TuSDKPFEditPaintViewController.h

  maxUndoCount

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

@property (nonatomic, assign) NSUInteger maxUndoCount

Availability

v3.1.0

Declared In

TuSDKPFEditPaintViewController.h