WatermarkRatio
- Unity
更新时间不可用
水印在屏幕中的位置和大小。
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; }
}水印在屏幕中的位置和大小由 xRatio、yRatio 和 widthRatio 共同决定:
- (
xRatio,yRatio) 指水印左上角的坐标,决定水印左上角到屏幕左上角的距离。 widthRatio决定水印的宽度。