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