# WatermarkOptions (/zh-CN/api-reference/rtc/android/4.6.0/class-and-enum/classes/class-watermarkoptions)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```java
public class WatermarkOptions {
public boolean visibleInPreview = true;
public Rectangle positionInLandscapeMode = new Rectangle();
public Rectangle positionInPortraitMode = new Rectangle();
public int zOrder = 0;
}
```
### `自从` [#自从]
自 v4.6.0 版本新增。
用于配置添加的水印图像。
## 属性 [#属性]
### `visibleInPreview` [#visibleinpreview]
水印是否在本地预览视图中可见:
- true:(默认)水印在本地预览视图中可见。
- false:水印在本地预览视图中不可见。
### `positionInLandscapeMode` [#positioninlandscapemode]
横屏模式下显示水印图像的区域,详见 [Rectangle](/zh-CN/api-reference/rtc/android/class-and-enum/classes/class-rectangle)。
### `positionInPortraitMode` [#positioninportraitmode]
竖屏模式下显示水印图像的区域,详见 [Rectangle](/zh-CN/api-reference/rtc/android/class-and-enum/classes/class-rectangle)。
### `zOrder` [#zorder]
水印图像的图层顺序,默认值为 0。