Agora RTC Objective-C API Reference Refactor

Data Fields
WatermarkRatio Struct Reference

## Data Fields
float | xRatio
float | yRatio
float | widthRatio

## Detailed Description

The position and size of the watermark on the screen are determined by `xRatio`, `yRatio`, and `widthRatio`:

- ( `xRatio`, `yRatio` ) refers to the coordinates of the upper left corner of the watermark, which determines the distance from the upper left corner of the watermark to the upper left corner of the screen.
- The `widthRatio` determines the width of the watermark.

## Constructor & Destructor Documentation

## ◆ WatermarkRatio() [1/2]

WatermarkRatio | ( |  | ) |
| inline

## ◆ WatermarkRatio() [2/2]

WatermarkRatio | ( | float | x,
|  | float | y,
|  | float | width
| ) |  |
| inline

## Field Documentation

## ◆ xRatio

float xRatio

The x-coordinate of the upper left corner of the watermark. The horizontal position relative to the origin, where the upper left corner of the screen is the origin, and the x-coordinate is the upper left corner of the watermark. The value range is [0.0,1.0], and the default value is 0.

## ◆ yRatio

float yRatio

The y-coordinate of the upper left corner of the watermark. The vertical position relative to the origin, where the upper left corner of the screen is the origin, and the y-coordinate is the upper left corner of the screen. The value range is [0.0,1.0], and the default value is 0.

## ◆ widthRatio

float widthRatio

The width of the watermark. The SDK calculates the height of the watermark proportionally according to this parameter value to ensure that the enlarged or reduced watermark image is not distorted. The value range is [0,1], and the default value is 0, which means no watermark is displayed.