INNER CODE UNIT · TypeScript
WatermarkRatio
AgoraIO-Extensions/react-native-agora · src/AgoraBase.ts:1700
export class WatermarkRatio {
/**
* The x-coordinate of the top-left corner of the watermark. With the top-left corner of the screen as the origin, the x-coordinate represents the horizontal offset of the watermark's top-left corner relative to the origin. Value range: [0.0, 1.0], default is 0.
*/
xRatio?: number;
/**
* The y-coordinate of the top-left corner of the watermark. With the top-left corner of the screen as the origin, the y-coordinate represents the vertical offset of the watermark's top-left corner relative to the origin. Value range: [0.0, 1.0], default is 0.
*/
yRatio?: number;
/**
* The width of the watermark. The SDK calculates the proportional height of the watermark based on this value to ensure the image is not distorted when scaled. Value range: [0.0, 1.0], default is 0, which means the watermark is not displayed.
*/
widthRatio?: number;
}
/**
* Configures the watermark image.
*