TuSDKCPPaintDrawViewInterface Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | TuSDKPaintDrawViewBase.h |
– setPaintColor:
required method
设置笔刷对象
- (void)setPaintColor:(NSString *)color
Parameters
color |
笔刷对象 |
---|
Availability
v3.1.0
Declared In
TuSDKPaintDrawViewBase.h
– setPaintSize:
required method
设置笔刷粗细级别
- (void)setPaintSize:(lsqBrushSize)mBrushSize
Parameters
mBrushSize |
粗细级别 |
---|
Availability
v3.1.0
Declared In
TuSDKPaintDrawViewBase.h
– setPaintScaleBrushSize:
required method
笔刷缩放, 1 < brushSize <= 3
- (void)setPaintScaleBrushSize:(CGFloat)mScaleBrushSize
Parameters
mScaleBrushSize |
缩放大小 |
---|
Availability
v3.1.0
Declared In
TuSDKPaintDrawViewBase.h
– setPaintMinDistance:
required method
两点间的最小距离, 0 < brushSize < 20 默认10
- (void)setPaintMinDistance:(CGFloat)minDistance
Parameters
minDistance |
最小距离 |
---|
Availability
v3.1.0
Declared In
TuSDKPaintDrawViewBase.h
– canUndo
required method
是否可以撤销上一步
- (BOOL)canUndo
Return Value
YES 可以撤销上一步
Availability
v3.1.0
Declared In
TuSDKPaintDrawViewBase.h
– canRedo
required method
是否可以重做上一步
- (BOOL)canRedo
Return Value
YES 可以重做
Availability
v3.1.0
Declared In
TuSDKPaintDrawViewBase.h
– getCanvasImage:
required method
合成最终效果图
- (UIImage *)getCanvasImage:(UIImage *)source
Parameters
source |
原图 |
---|
Availability
v3.1.0
Declared In
TuSDKPaintDrawViewBase.h