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();
}
visibleInPreview
预留参数。
positionInLandscapeMode
横屏模式下,显示水印图片的区域。详见 Rectangle
。
positionInPortraitMode
竖屏模式下,显示水印图片的区域。详见 Rectangle
。