WatermarkRatio
Position and size of the watermark on the screen.
export class WatermarkRatio {
xRatio?: number;
yRatio?: number;
widthRatio?: number;
}
The position and size of the watermark on the screen are determined by
xRatio, yRatio, and widthRatio:
- (
xRatio,yRatio) indicates the coordinates of the top-left corner of the watermark, representing the distance from the top-left corner of the screen. widthRatiodetermines the width of the watermark.
Properties
- xRatio
- 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.
- yRatio
- 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.
- widthRatio
- 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.