TuSDKICSmudgeImageViewWrap Class Reference

Inherits from UIView
Conforms to TuSDKICSmudgeImageViewInterface
Declared in TuSDKICSmudgeImageViewWrap.h

  delegate

画布操作事件委托

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

Declared In

TuSDKICSmudgeImageViewWrap.h

– setImage:

显示的图片

- (void)setImage:(UIImage *)image

Declared In

TuSDKICSmudgeImageViewWrap.h

– setBrush:

笔刷对象

- (void)setBrush:(TuSDKPFBrush *)mBrush

Declared In

TuSDKICSmudgeImageViewWrap.h

– setBrushSize:

笔刷粗细, 0 < brushSize <= 1

- (void)setBrushSize:(lsqBrushSize)mBrushSize

Declared In

TuSDKICSmudgeImageViewWrap.h

– setBrushCustomSize:

橡皮粗细 0.05 < mBrushCustomSize < 0.25

- (void)setBrushCustomSize:(CGFloat)mBrushCustomSize

Declared In

TuSDKICSmudgeImageViewWrap.h

– setMaxUndoCount:

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

- (void)setMaxUndoCount:(NSUInteger)mMaxUndoCount

Declared In

TuSDKICSmudgeImageViewWrap.h

– undo

撤销上一步

- (void)undo

Declared In

TuSDKICSmudgeImageViewWrap.h

– redo

重做上一步

- (void)redo

Declared In

TuSDKICSmudgeImageViewWrap.h

– showOriginal:

显示原图

- (void)showOriginal:(BOOL)state

Parameters

state

显示 | 关闭

Declared In

TuSDKICSmudgeImageViewWrap.h

– needUpdateLayout

更新布局

- (void)needUpdateLayout

Declared In

TuSDKICSmudgeImageViewWrap.h

– getCanvasImage:

合成最终效果图

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

Parameters

source

原图

Declared In

TuSDKICSmudgeImageViewWrap.h

– getSmudgeImage

获取绘制图

- (UIImage *)getSmudgeImage

Return Value

image 效果图

Declared In

TuSDKICSmudgeImageViewWrap.h

– getOriginalImage

获取原始图

- (UIImage *)getOriginalImage

Return Value

image 原始图

Declared In

TuSDKICSmudgeImageViewWrap.h

– destroy

清理内存

- (void)destroy

Declared In

TuSDKICSmudgeImageViewWrap.h