WatermarkOptions
水印图片的设置。
__attribute__((visibility("default"))) @interface WatermarkOptions : NSObject @property(assign, nonatomic) BOOL visibleInPreview; @property(assign, nonatomic) CGRect positionInLandscapeMode; @property(assign, nonatomic) CGRect positionInPortraitMode; @end
属性
- visibleInPreview
- 预留参数。
- positionInLandscapeMode
- 横屏模式下,显示水印图片的区域。该参数包含以下成员:
- x:水印相对左上角的横向偏移。
- y:水印相对左上角的纵向偏移。
- width:水印区域的宽(pixel)。
- height:水印区域的高(pixel)。
- positionInPortraitMode
- 竖屏模式下,显示水印图片的区域。该参数包含以下成员:
- x:水印相对左上角的横向偏移。
- y:水印相对左上角的纵向偏移。
- width:水印区域的宽(pixel)。
- height:水印区域的高(pixel)。