TuSDKPFEditPaintOptions Class Reference

Inherits from TuSDKCPImageResultOptions
Declared in TuSDKPFEditPaintOptions.h

Overview

涂鸦选项类

  viewClazz

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

@property (nonatomic, strong) Class viewClazz

Availability

v3.1.0

Declared In

TuSDKPFEditPaintOptions.h

  brushBarCellWidth

单元格宽度 60

@property (nonatomic) NSUInteger brushBarCellWidth

Availability

v3.1.0

Declared In

TuSDKPFEditPaintOptions.h

  brushBarHeight

单元格高度: 默认80

@property (nonatomic) NSUInteger brushBarHeight

Availability

v3.1.0

Declared In

TuSDKPFEditPaintOptions.h

  brushBarCellClazz

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

@property (nonatomic, strong) Class brushBarCellClazz

Availability

v3.1.0

Declared In

TuSDKPFEditPaintOptions.h

  brushGroup

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

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

Availability

v3.1.0

Declared In

TuSDKPFEditPaintOptions.h

  defaultBrushSize

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

@property (nonatomic, assign) lsqBrushSize defaultBrushSize

Availability

v3.1.0

Declared In

TuSDKPFEditPaintOptions.h

  brushScaleSize

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

@property (nonatomic, assign) CGFloat brushScaleSize

Availability

v3.1.0

Declared In

TuSDKPFEditPaintOptions.h

  minDistance

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

@property (nonatomic, assign) CGFloat minDistance

Availability

v3.1.0

Declared In

TuSDKPFEditPaintOptions.h

  saveLastBrush

是否保存上一次使用的笔刷,默认YES

@property (nonatomic) BOOL saveLastBrush

Availability

v3.1.0

Declared In

TuSDKPFEditPaintOptions.h

  maxUndoCount

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

@property (nonatomic, assign) NSUInteger maxUndoCount

Availability

v3.1.0

Declared In

TuSDKPFEditPaintOptions.h

– viewController

创建笔刷编辑控制器对象

- (TuSDKPFEditPaintViewController *)viewController

Return Value

controller 笔刷编辑控制器对象

Availability

v3.1.0

Declared In

TuSDKPFEditPaintOptions.h