EMWaterMarkOption.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // EMWaterMarkOption.h
  3. // RtcSDK
  4. //
  5. // Created by lixiaoming on 2020/1/13.
  6. // Copyright © 2020 easemob. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef NS_ENUM(NSInteger, EMWaterMarkStart) {
  11. LEFTTOP = 0,
  12. RIGHTTOP,
  13. LEFTBOTTOM,
  14. RIGHTBOTTOM,
  15. };
  16. @interface EMWaterMarkOption : NSObject
  17. /*!
  18. * \~chinese
  19. * 是否启用水印设置,默认为YES
  20. * \~english
  21. * Whether using watermark, default is YES
  22. */
  23. @property (nonatomic) bool enable;
  24. /*!
  25. * \~chinese
  26. * 水印图片的url,可以是本地文件和远程文件url
  27. * \~english
  28. * The url of watermark picture,it can be local file or remote file url
  29. */
  30. @property (nonatomic) NSURL* url;
  31. /*!
  32. * \~chinese
  33. * 水印图片距离margin起点的横轴距离
  34. * \~english
  35. * The margin X to start position of watermark
  36. */
  37. @property (nonatomic) int marginX;
  38. /*!
  39. * \~chinese
  40. * 水印图片距离margin起点的纵轴距离
  41. * \~english
  42. * The margin Y to start position of watermark
  43. */
  44. @property (nonatomic) int marginY;
  45. /*!
  46. * \~chinese
  47. * 水印图片的margin起点的位置,枚举值,取值包括 LEFTTOP|RIGHTTOP|LEFTBOTTOM|RIGHTBOTTOM
  48. * \~english
  49. * The margin position of watermark picture. Enum value.LEFTTOP|RIGHTTOP|LEFTBOTTOM|RIGHTBOTTOM
  50. */
  51. @property (nonatomic) EMWaterMarkStart startPoint;
  52. @end
  53. NS_ASSUME_NONNULL_END