public class WatermarkRatio
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private float |
widthRatio
Width ratio relative to video frame (0.0 to 1.0).
|
private float |
xRatio
X-axis position ratio (0.0 to 1.0).
|
private float |
yRatio
Y-axis position ratio (0.0 to 1.0).
|
| Constructor and Description |
|---|
WatermarkRatio()
Default constructor.
|
WatermarkRatio(float xRatio,
float yRatio,
float widthRatio)
Constructor with parameters.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getWidthRatio()
Gets the width ratio.
|
float |
getXRatio()
Gets the X-axis position ratio.
|
float |
getYRatio()
Gets the Y-axis position ratio.
|
void |
setWidthRatio(float widthRatio)
Sets the width ratio.
|
void |
setXRatio(float xRatio)
Sets the X-axis position ratio.
|
void |
setYRatio(float yRatio)
Sets the Y-axis position ratio.
|
private float xRatio
private float yRatio
private float widthRatio
public WatermarkRatio()
public WatermarkRatio(float xRatio,
float yRatio,
float widthRatio)
xRatio - X-axis position ratio (0.0 to 1.0)yRatio - Y-axis position ratio (0.0 to 1.0)widthRatio - Width ratio relative to video frame (0.0 to 1.0)public float getXRatio()
public void setXRatio(float xRatio)
xRatio - X-axis position ratio (0.0 to 1.0)public float getYRatio()
public void setYRatio(float yRatio)
yRatio - Y-axis position ratio (0.0 to 1.0)public float getWidthRatio()
public void setWidthRatio(float widthRatio)
widthRatio - Width ratio relative to video frame (0.0 to 1.0)