# WatermarkOptions (/zh-CN/api-reference/rtc/cpp-all-platforms/class-watermarkoptions)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```cpp
struct WatermarkOptions {
bool visibleInPreview;
Rectangle positionInLandscapeMode;
Rectangle positionInPortraitMode;
WatermarkRatio watermarkRatio;
WATERMARK_FIT_MODE mode;
int zOrder;
};
```
## 属性 [#属性]
水印是否在本地预览视图中可见:
- true:(默认)水印在本地预览视图中可见。
- false:水印在本地预览视图中不可见。
当水印的适配模式为 `FIT_MODE_COVER_POSITION` 时,用于设置水印图像在横屏模式下的位置区域。详见 [Rectangle](/zh-CN/api-reference/rtc/cpp-all-platforms/class-rectangle)。
当水印的适配模式为 `FIT_MODE_COVER_POSITION` 时,用于设置水印图像在竖屏模式下的位置区域。详见 [Rectangle](/zh-CN/api-reference/rtc/cpp-all-platforms/class-rectangle)。
当水印的适配模式为 `FIT_MODE_USE_IMAGE_RATIO` 时,用于设置水印的坐标。详见 [WatermarkRatio](/zh-CN/api-reference/rtc/cpp-all-platforms/class-watermarkratio)。
水印的适配模式。详见 [WATERMARK_FIT_MODE](/zh-CN/api-reference/rtc/cpp-all-platforms/enum-watermarkfitmode)。
水印图像的图层顺序,默认值为 0。