TuSDKICSmudgeImageViewInterface Protocol Reference

Conforms to NSObject
Declared in TuSDKICSmudgeImageViewWrap.h

Overview

Smudge Image View Interface

  delegate required method

画布操作事件委托

@property (nonatomic, weak) id<TuSDKICSmudgeImageViewDelegate> delegate

Declared In

TuSDKICSmudgeImageViewWrap.h

– setImage: required method

显示的图片

- (void)setImage:(UIImage *)image

Declared In

TuSDKICSmudgeImageViewWrap.h

– setBrush: required method

笔刷对象

- (void)setBrush:(TuSDKPFBrush *)brush

Declared In

TuSDKICSmudgeImageViewWrap.h

– setBrushSize: required method

笔刷粗细, 0 < brushSize <= 1

- (void)setBrushSize:(lsqBrushSize)brushSize

Declared In

TuSDKICSmudgeImageViewWrap.h

– setBrushCustomSize: required method

橡皮粗细 0.05 < mBrushCustomSize < 0.25

- (void)setBrushCustomSize:(CGFloat)mBrushCustomSize

Declared In

TuSDKICSmudgeImageViewWrap.h

– setMaxUndoCount: required method

默认撤销的最大次数 (默认: 5)

- (void)setMaxUndoCount:(NSUInteger)mMaxUndoCount

Declared In

TuSDKICSmudgeImageViewWrap.h

– undo required method

撤销上一步

- (void)undo

Declared In

TuSDKICSmudgeImageViewWrap.h

– redo required method

重做上一步

- (void)redo

Declared In

TuSDKICSmudgeImageViewWrap.h

– showOriginal: required method

显示原图

- (void)showOriginal:(BOOL)state

Parameters

state

显示 | 关闭

Declared In

TuSDKICSmudgeImageViewWrap.h

– needUpdateLayout required method

更新布局

- (void)needUpdateLayout

Declared In

TuSDKICSmudgeImageViewWrap.h

– getCanvasImage: required method

合成最终效果图

- (UIImage *)getCanvasImage:(UIImage *)source

Parameters

source

原图

Declared In

TuSDKICSmudgeImageViewWrap.h

– getSmudgeImage required method

获取绘制图

- (UIImage *)getSmudgeImage

Return Value

image 效果图

Declared In

TuSDKICSmudgeImageViewWrap.h

– getOriginalImage required method

获取原始图

- (UIImage *)getOriginalImage

Return Value

image 原始图

Declared In

TuSDKICSmudgeImageViewWrap.h

– destroy required method

清理内存

- (void)destroy

Declared In

TuSDKICSmudgeImageViewWrap.h

– destroyHistory required method

销毁历史记录

- (void)destroyHistory

Declared In

TuSDKICSmudgeImageViewWrap.h