TuSDKFilterParameter Class Reference
Inherits from | NSObject |
---|---|
Declared in | TuSDKFilterParameter.h |
args
参数列表
@property (nonatomic, readonly) NSArray<TuSDKFilterArg*> *args
Declared In
TuSDKFilterParameter.h
defaultArgsDict
参数字典
@property (nonatomic, readonly) NSDictionary<NSString*NSString*> *defaultArgsDict
Declared In
TuSDKFilterParameter.h
+ parameter
滤镜配置选项
+ (instancetype)parameter
Return Value
parameter 滤镜配置选项
Declared In
TuSDKFilterParameter.h
+ parameterWithArgs:
滤镜配置选项
+ (instancetype)parameterWithArgs:(NSDictionary *)args
Parameters
args |
自定义参数 |
---|
Return Value
args 滤镜配置选项
Declared In
TuSDKFilterParameter.h
– resetWithKey:
重置参数
- (void)resetWithKey:(NSString *)key
Parameters
key |
参数键名 |
---|
Declared In
TuSDKFilterParameter.h
– argWithKey:
获取滤镜参数
- (TuSDKFilterArg *)argWithKey:(NSString *)key
Parameters
key |
参数键名 |
---|
Return Value
key 滤镜参数
Declared In
TuSDKFilterParameter.h
– argWithDefaultKey:
获取默认配置参数值
- (CGFloat)argWithDefaultKey:(NSString *)key
Parameters
key |
参数键名 |
---|
Return Value
key 参数值
Declared In
TuSDKFilterParameter.h
– setArgWithKey:precent:
设置滤镜参数百分比
- (void)setArgWithKey:(NSString *)key precent:(CGFloat)precent
Parameters
key |
参数键名 |
---|---|
precent |
百分比 0 - 1 |
Declared In
TuSDKFilterParameter.h
– stepArgWithKey:precent:
步进滤镜参数百分比
- (void)stepArgWithKey:(NSString *)key precent:(CGFloat)precent
Parameters
key |
参数键名 |
---|---|
precent |
百分比 0 - 1 |
Declared In
TuSDKFilterParameter.h
– appendFloatArgWithKey:value:minValue:maxValue:
添加一个浮点参数
- (void)appendFloatArgWithKey:(NSString *)key value:(CGFloat)value minValue:(CGFloat)minValue maxValue:(CGFloat)maxValue
Discussion
@param key 参数键名 @param value 当前值 @param minValue 最小值 @param maxValue 最大值
Declared In
TuSDKFilterParameter.h
– merge:
合并滤镜参数
- (void)merge:(TuSDKFilterParameter *)other
Parameters
other |
其他滤镜参数 |
---|
Declared In
TuSDKFilterParameter.h
– syncArgs:
同步滤镜参数
- (void)syncArgs:(TuSDKFilterParameter *)other
Parameters
other |
其他滤镜参数 |
---|
Declared In
TuSDKFilterParameter.h