TuSDKPFEditSmudgeControllerBase Class Reference

Inherits from TuSDKCPImageResultController : TuSDKCPResultViewController : TuSDKCPViewController : TuSDKICViewController : UIViewController
Conforms to TuSDKICSmudgeImageViewDelegate
Declared in TuSDKPFEditSmudgeControllerBase.h

Overview

涂抹编辑控制器基础类

  brush

当前所使用的笔刷

@property (nonatomic, retain) TuSDKPFBrush *brush

Declared In

TuSDKPFEditSmudgeControllerBase.h

  smudgeView

涂抹画布

@property (nonatomic, readonly) UIView<TuSDKICSmudgeImageViewInterface> *smudgeView

Declared In

TuSDKPFEditSmudgeControllerBase.h

– selectBrushCode:

选中一个笔刷

- (BOOL)selectBrushCode:(NSString *)code

Parameters

code

笔刷代号

Return Value

是否成功切换

Declared In

TuSDKPFEditSmudgeControllerBase.h

– onImageCompleteAction

编辑图片完成按钮动作

- (void)onImageCompleteAction

Declared In

TuSDKPFEditSmudgeControllerBase.h

– onUndoAction

撤销上一步

- (void)onUndoAction

Declared In

TuSDKPFEditSmudgeControllerBase.h

– onRedoAction

重做上一步

- (void)onRedoAction

Declared In

TuSDKPFEditSmudgeControllerBase.h

– onOriginalActionStart

按下显示原图按钮

- (void)onOriginalActionStart

Declared In

TuSDKPFEditSmudgeControllerBase.h

– onOriginalActionEnd

放开显示原图按钮

- (void)onOriginalActionEnd

Declared In

TuSDKPFEditSmudgeControllerBase.h

– onRefreshStepStatesWithHistories:redoCount:

刷新撤销 / 重做 数据

- (void)onRefreshStepStatesWithHistories:(NSUInteger)undoCount redoCount:(NSUInteger)redoCount

Parameters

undoCount

可以撤销的次数

redoCount

可以重做的次数

Declared In

TuSDKPFEditSmudgeControllerBase.h

– onSmudgeActionChanged:viewLocation:canvasWidth:canvasHeight:

涂抹动作改变

- (void)onSmudgeActionChanged:(CGPoint)point viewLocation:(CGPoint)viewPoint canvasWidth:(CGFloat)width canvasHeight:(CGFloat)height

Parameters

point

偏向上的涂抹位置

viewPoint

视图上的涂抹位置

width

画布宽度

height

画布高度

Declared In

TuSDKPFEditSmudgeControllerBase.h

– onSmudgeActionEnd

涂抹动作结束

- (void)onSmudgeActionEnd

Declared In

TuSDKPFEditSmudgeControllerBase.h