WatermarkOptions
Watermark image configurations.
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; }
Configuration options for setting the watermark image to be added.
Attributes
- visibleInPreview
- Whether the watermark is visible in the local preview view:
true
: (Default) The watermark is visible in the local preview view.false
: The watermark is not visible in the local preview view.
- positionInLandscapeMode
- The area to display the watermark image in landscape mode. See Rectangle.
- positionInPortraitMode
- The area to display the watermark image in portrait mode. See Rectangle.
- zOrder
- Layer order of the watermark image. The default value is 0.