AliyunFilterManager
@interface AliyunFilterManager : NSObject
API_AVAILABLE(3.27.0) 滤镜管理器
-
API_AVAILABLE(3.27.0) 添加lut滤镜
Declaration
Objective-C
- (AliyunLutFilterController *)applyLutFilterWithPath:(NSString *)path intensity:(float)intensity;
Parameters
path
lut图片的路径
intensity
滤镜的强度,[0.0,1.0]
Return Value
AliyunLutFilterController, lut滤镜控制器
-
API_AVAILABLE(3.27.0) 添加滤镜
Declaration
Objective-C
- (AliyunShaderFilterController *)applyShadeFilterWithPath:(NSString *)path;
Parameters
path
路径资源文件夹路径
Return Value
AliyunShaderFilterController, 滤镜控制器
-
API_AVAILABLE(3.27.0) 删除滤镜
Declaration
Objective-C
- (int)removeFilter:(AliyunBaseFilterController *)filterController;
Parameters
filterController
要删除的滤镜,传入AliyunBaseFilterController的具体子类
Return Value
0 表示成功
-
API_AVAILABLE(3.27.0) 获取lut滤镜控制器
Declaration
Objective-C
- (NSArray<AliyunLutFilterController *> *)getLutFilterControllers;
Return Value
一个包含AliyunLutFilterController的列表,目前只有一个
-
API_AVAILABLE(3.27.0) 获取滤镜控制器
Declaration
Objective-C
- (NSArray<AliyunShaderFilterController *> *)getShaderFilterControllers;
Return Value
一个包含AliyunShaderFilterController的列表,目前只有一个