WatermarkOptions
配置水印图像。
Java
public class WatermarkOptions {
  public static class Rectangle {
    public int x = 0;
    public int y = 0;
    public int width = 0;
    public int height = 0;
    public Rectangle() {
      x = 0;
      y = 0;
      width = 0;
      height = 0;
    }
    public Rectangle(int x_, int y_, int width_, int height_) {
      x = x_;
      y = y_;
      width = width_;
      height = height_;
    }
  };
  public boolean visibleInPreview = true;
  public Rectangle positionInLandscapeMode = new Rectangle();
  public Rectangle positionInPortraitMode = new Rectangle();
  public int zOrder = 0;
}
用于设置要添加的水印图像的相关配置项。
相关参考visibleInPreview
 水印是否在本地预览视图中可见: 
- true: (默认)水印在本地预览视图中可见。
- false: 水印在本地预览视图中不可见。
positionInLandscapeMode
 横屏模式下,显示水印图片的区域。详见 Rectangle。
positionInPortraitMode
 竖屏模式下,显示水印图片的区域。详见 Rectangle。
zOrder
 水印图像的图层顺序。默认值为 0。