WatermarkRatio
Watermark position and size on the screen.
public class WatermarkRatio
{
public WatermarkRatio()
{
xRatio = 0.0f;
yRatio = 0.0f;
widthRatio = 0.0f;
}
public WatermarkRatio(float x, float y, float width)
{
xRatio = x;
yRatio = y;
widthRatio = width;
}
public float xRatio { set; get; }
public float yRatio { set; get; }
public float widthRatio { set; get; }
}
The position and size of the watermark on the screen are determined by
xRatio, yRatio, and widthRatio:
- (
xRatio,yRatio) specifies the coordinates of the top-left corner of the watermark, determining its distance from the top-left corner of the screen. widthRatiospecifies 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 is the horizontal offset of the watermark's top-left corner relative to the origin. Value range is [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 is the vertical offset of the watermark's top-left corner relative to the origin. Value range is [0.0,1.0], default is 0.
- widthRatio
- The width of the watermark. The SDK calculates the proportional height based on this value to ensure the watermark image is not distorted when scaled. Value range is [0.0,1.0], default is 0, which means the watermark is not displayed.