WatermarkRatio
Watermark position and size on screen.
export class WatermarkRatio {
xRatio?: number;
yRatio?: number;
widthRatio?: number;
}
The watermark's position and size on screen are determined by
xRatio, yRatio, and widthRatio:
- (
xRatio,yRatio) represents the coordinates of the top-left corner of the watermark, determining the distance from the top-left corner of the screen. widthRatiodetermines the width of the watermark.
Properties
- xRatio
- X coordinate of the top-left corner of the watermark. Using the top-left corner of the screen as the origin, the x coordinate is the horizontal offset of the watermark's top-left corner from the origin. Value range: [0.0, 1.0], default is 0.
- yRatio
- Y coordinate of the top-left corner of the watermark. Using the top-left corner of the screen as the origin, the y coordinate is the vertical offset of the watermark's top-left corner from the origin. Value range: [0.0, 1.0], default is 0.
- widthRatio
- Width of the watermark. The SDK calculates the height proportionally based on this value to ensure the watermark image is not distorted when scaled. Value range: [0.0, 1.0], default is 0, which means the watermark is not displayed.