public class EffectSticker extends EffectBase implements IEffectRect
v3.27.0新增 贴图的实体类
Modifier and Type | Field and Description |
---|---|
protected boolean |
mFlipH |
protected EffectRect |
mRect |
mSource, resId, viewId
Constructor and Description |
---|
EffectSticker(Source aSource) |
Modifier and Type | Method and Description |
---|---|
EffectSticker |
copy()
拷贝当前对象
|
void |
copy(EffectSticker effectSticker)
从指定对象拷贝数据
|
float |
getHeightRatio()
获取高的比例值
|
float |
getRotation()
获取字幕旋转的弧度
|
float |
getWidthRatio()
获取宽的比例值
|
float |
getXRadio()
获取x坐标的比例值
|
float |
getYRadio()
获取y坐标的比例值
|
boolean |
isFlipH()
是否水平翻转
|
void |
setFlipH(boolean flip)
设置是否镜像
|
void |
setHeightRatio(float heightRatio)
设置高的比例值
|
void |
setRotation(float radian)
设置字幕当前旋转的弧度
|
void |
setWidthRatio(float widthRatio)
设置宽的比例值
|
void |
setXRadio(float xRatio)
设置x坐标的比例值
|
void |
setYRatio(float yRatio)
设置y坐标的比例值
|
checkIsInvalid, copy, getPath, getResId, getSource, getViewId, readString, setPath, setResId, setSource, setViewId, toString
public boolean isFlipH()
public void setFlipH(boolean flip)
flip
- public float getXRadio()
IEffectRect
getXRadio
in interface IEffectRect
public void setXRadio(float xRatio)
IEffectRect
setXRadio
in interface IEffectRect
xRatio
- 比例值 [0 - 1]public float getYRadio()
IEffectRect
getYRadio
in interface IEffectRect
public void setYRatio(float yRatio)
IEffectRect
setYRatio
in interface IEffectRect
yRatio
- 比例值 [0 - 1]public float getWidthRatio()
IEffectRect
getWidthRatio
in interface IEffectRect
public void setWidthRatio(float widthRatio)
IEffectRect
setWidthRatio
in interface IEffectRect
widthRatio
- 宽比例 [0 - 1]public float getHeightRatio()
IEffectRect
getHeightRatio
in interface IEffectRect
public void setHeightRatio(float heightRatio)
IEffectRect
setHeightRatio
in interface IEffectRect
heightRatio
- 高比例 [0 - 1]public float getRotation()
IEffectRect
getRotation
in interface IEffectRect
public void setRotation(float radian)
IEffectRect
setRotation
in interface IEffectRect
public EffectSticker copy()
public void copy(EffectSticker effectSticker)
effectSticker
-