UGCKitWatermark.h 531 B

1234567891011121314151617181920
  1. // Copyright (c) 2019 Tencent. All rights reserved.
  2. #import <UIKit/UIKit.h>
  3. NS_ASSUME_NONNULL_BEGIN
  4. /// 水印
  5. @interface UGCKitWatermark : NSObject
  6. /// 图片
  7. @property (strong, nonatomic) UIImage *image;
  8. /// 位置
  9. @property (assign, nonatomic) CGRect frame;
  10. /// 时长(仅在设置片尾水印时有效)
  11. @property (assign, nonatomic) NSTimeInterval duration;
  12. /// 实例化水印对象
  13. + (instancetype)watermarkWithImage:(UIImage *)image frame:(CGRect)frame duration:(NSTimeInterval)duration;
  14. @end
  15. NS_ASSUME_NONNULL_END