TuSDKPFSimpleProcessor Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | TuSDKPFSimpleProcessor.h |
currentBrush
当前笔刷
@property (nonatomic, retain) TuSDKPFBrush *currentBrushDeclared In
TuSDKPFSimpleProcessor.h
maxUndoCount
默认撤销的最大次数 (默认: 5)
@property (nonatomic, assign) NSUInteger maxUndoCountDeclared In
TuSDKPFSimpleProcessor.h
originIVSize
该图所在的imageView的 size,用来计算对应到图片上的相对位置
@property (nonatomic, assign) CGSize originIVSizeDeclared In
TuSDKPFSimpleProcessor.h
– setImage:
设置绘制底图
- (void)setImage:(UIImage *)scaledImageParameters
scaledImage |
scaledImage |
|---|
Declared In
TuSDKPFSimpleProcessor.h
– saveCurrentAsHistory
保存当前画面进入绘制历史
- (void)saveCurrentAsHistoryDeclared In
TuSDKPFSimpleProcessor.h
– getRedoData
重做上一条操作,并返回预览图像
- (UIImage *)getRedoDataReturn Value
image 重做操作后的画布图像
Declared In
TuSDKPFSimpleProcessor.h
– getUndoData
撤销上一步操作,并返回预览图像
- (UIImage *)getUndoDataReturn Value
image 撤销操作后的画布图像
Declared In
TuSDKPFSimpleProcessor.h
– drawAtCurrentPoint:from:
在触摸点绘制
- (UIImage *)drawAtCurrentPoint:(CGPoint)currentTouchPoint from:(CGPoint)previousTouchPointParameters
currentTouchPoint |
当前触点 |
|---|---|
previousTouchPoint |
上一个触点 |
Return Value
image 预览图
Declared In
TuSDKPFSimpleProcessor.h
– getPreviewImage:
获取预览图
- (UIImage *)getPreviewImage:(BOOL)includeSmudgeParameters
includeSmudge |
是否包含涂抹效果 |
|---|
Return Value
image 图片
Declared In
TuSDKPFSimpleProcessor.h