WatermarkOptions
Configurations of the watermark image.
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(); }
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.