TuSDKPFSimpleProcessor Class Reference

Inherits from NSObject
Declared in TuSDKPFSimpleProcessor.h

Overview

涂抹功能处理基类

  currentBrush

当前笔刷

@property (nonatomic, retain) TuSDKPFBrush *currentBrush

Declared In

TuSDKPFSimpleProcessor.h

  brushSize

笔刷粗细

@property (nonatomic) CGFloat brushSize

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

– getRedoCount

允许重做的次数

- (NSUInteger)getRedoCount

Declared In

TuSDKPFSimpleProcessor.h

– getUndoCount

允许撤销的次数

- (NSUInteger)getUndoCount

Declared In

TuSDKPFSimpleProcessor.h

– touchesBegan

开始绘制

- (void)touchesBegan

Declared In

TuSDKPFSimpleProcessor.h

– drawAtCurrentPoint:from:

在触摸点绘制

- (UIImage *)drawAtCurrentPoint:(CGPoint)currentTouchPoint from:(CGPoint)previousTouchPoint

Parameters

currentTouchPoint

当前触点

previousTouchPoint

上一个触点

Return Value

image 预览图

Declared In

TuSDKPFSimpleProcessor.h

– getSmudgeImage

获取绘制图层的图片

- (UIImage *)getSmudgeImage

Declared In

TuSDKPFSimpleProcessor.h

– getPreviewImage:

获取预览图

- (UIImage *)getPreviewImage:(BOOL)includeSmudge

Parameters

includeSmudge

是否包含涂抹效果

Return Value

image 图片

Declared In

TuSDKPFSimpleProcessor.h

– destroy

销毁数据

- (void)destroy

Declared In

TuSDKPFSimpleProcessor.h

– destroyHistory

销毁历史记录

- (void)destroyHistory

Declared In

TuSDKPFSimpleProcessor.h