WatermarkConfig
配置水印相关信息。
Objective-C
__attribute__((visibility("default"))) @interface WatermarkConfig : NSObject
@property(copy, nonatomic) NSString* _Nonnull id;
@property(assign, nonatomic) WatermarkType type;
@property(strong, nonatomic) WatermarkBuffer* _Nullable buffer;
@property(strong, nonatomic) NSURL *_Nullable imageUrl;
@property(strong, nonatomic) WatermarkOptions* _Nonnull options;
@end
自从
自 v4.6.0 版本新增。
信息
设置水印类型时,
type 需与实际提供的数据字段相匹配,不可同时传入多种类型的水印:若 type 为 buffer,则仅支持设置 buffer 字段;若 type 为 image,则仅支持设置 imageUrl 字段。id
水印的唯一标识符。
type
水印的类型,详见 WatermarkType。
buffer
水印图像的缓冲数据。详见 WatermarkBuffer。
imageUrl
水印图像的 URL。
options
水印的显示选项。详见 WatermarkOptions。