public class TrackEffectWaterMark extends EffectBase
Added in v3.27.0 The water mark bean of track
Modifier and Type | Class and Description |
---|---|
static class |
TrackEffectWaterMark.Builder |
Modifier and Type | Field and Description |
---|---|
protected EffectRect |
mEffectRect |
mSource, resId, viewId
Constructor and Description |
---|
TrackEffectWaterMark() |
Modifier and Type | Method and Description |
---|---|
float |
getHeightRatio()
Gets the height of this sticker relative to the screen resolution.
|
float |
getWidthRatio()
Gets the width of this sticker relative to the screen resolution.
|
float |
getXRadio()
Gets the x coordinate of the centroid of this sticker relative to the screen resolution.
|
float |
getYRadio()
Gets the y coordinate of the centroid of this sticker relative to the screen resolution.
|
void |
setHeightRatio(float heightRatio)
Sets the height of this sticker relative to the screen resolution.
|
void |
setWidthRatio(float widthRatio)
Sets the width of this sticker relative to the screen resolution.
|
void |
setXRadio(float xRatio)
Sets the x coordinate of the centroid of this sticker relative to the screen resolution.
|
void |
setYRatio(float yRatio)
Sets the y coordinate of the centroid of this sticker relative to the screen resolution.
|
checkIsInvalid, copy, getPath, getResId, getSource, getViewId, readString, setPath, setResId, setSource, setViewId, toString
public float getXRadio()
public void setXRadio(float xRatio)
xRatio
- The x coordinate. Valid values: [0, 1]public float getYRadio()
public void setYRatio(float yRatio)
yRatio
- The y coordinate. Valid values: [0, 1]public float getWidthRatio()
public void setWidthRatio(float widthRatio)
widthRatio
- The width. Valid values: [0, 1]public float getHeightRatio()
public void setHeightRatio(float heightRatio)
heightRatio
- The height. Valid values: [0, 1]