TuSDKBrushAdapter Class Reference
Inherits from | TuSDKNKDownloadAdapter : TuSDKTKImageViewTask : NSObject |
---|---|
Declared in | TuSDKBrushAdapter.h |
+ initWithConfig:
本地笔刷包
+ (instancetype)initWithConfig:(TuSDKConfig *)config
Parameters
config |
Sdk配置 |
---|
Return Value
config 本地笔刷包
Declared In
TuSDKBrushAdapter.h
– eraserBrush
获取橡皮擦笔刷对象
- (TuSDKPFBrush *)eraserBrush
Return Value
eraserBrush 笔刷对象 (如果未找到对应选项,返回默认配置)
Declared In
TuSDKBrushAdapter.h
– brushWithCode:
获取笔刷对象
- (TuSDKPFBrush *)brushWithCode:(NSString *)code
Parameters
code |
笔刷代号 |
---|
Return Value
code 笔刷对象 (如果未找到对应选项,返回默认配置)
Declared In
TuSDKBrushAdapter.h
– verifyCodes:
验证笔刷代号
- (NSArray *)verifyCodes:(NSArray *)codes
Parameters
codes |
笔刷代号列表 |
---|
Return Value
codes 笔刷名称
Declared In
TuSDKBrushAdapter.h
– brushWithCodes:
获取指定名称的笔刷列表
- (NSArray *)brushWithCodes:(NSArray *)codes
Parameters
codes |
笔刷代号列表 |
---|
Return Value
codes 笔刷列表
Declared In
TuSDKBrushAdapter.h
– loadThumbWithBrush:imageView:
加载笔刷预览图片
- (void)loadThumbWithBrush:(TuSDKPFBrush *)brush imageView:(UIImageView *)imageView
Parameters
brush |
笔刷对象 |
---|---|
imageView |
图片视图 |
Declared In
TuSDKBrushAdapter.h
– loadBrushData:
加载笔刷数据
- (BOOL)loadBrushData:(TuSDKPFBrush *)brush
Parameters
brush |
笔刷对象 |
---|
Return Value
BOOL 是否加载贴纸数据对象
Declared In
TuSDKBrushAdapter.h