public class EffectPaster extends EffectBase
Modifier and Type | Field and Description |
---|---|
ActionBase |
action
动效
|
int |
displayHeight
当前数据对应的显示高度
|
int |
displayWidth
当前数据对应的显示宽度
|
long |
duration
动图一个循环时长
|
long |
end
指定的需播放的动图的结束时间
|
java.util.List<Frame> |
frameArry
帧列表
|
int |
height
动图的高
|
boolean |
isTrack
是否追踪人脸,普通动图需要把这个值置成false
|
int |
kernelFrame
Deprecated.
|
boolean |
mirror
是否镜像
|
java.lang.String |
name
资源名称
|
static int |
PASTER_TYPE_CAPTION
字幕
|
static int |
PASTER_TYPE_GIF
普通动图
|
static int |
PASTER_TYPE_IMAGE
图片
|
static int |
PASTER_TYPE_TEXT
Deprecated.
|
float |
rotation
动图的角度值,默认为0
取-PI 到 PI,左旋转 0 ~ -3.14 右旋转 0 ~ 3.14
|
long |
start
指定的需播放的动图的开始时间
|
java.util.List<FrameTime> |
timeArry
时间戳
|
int |
width
动图的宽
|
float |
x
动图的x坐标,以中心为原点
|
float |
y
动图的y坐标,以中心为原点
|
mSource, resId, viewId
Constructor and Description |
---|
EffectPaster(Source source) |
EffectPaster(java.lang.String path)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
copy(EffectBase base) |
boolean |
equals(java.lang.Object obj) |
float |
getHeightRatio()
获取高的比例值
|
int |
getPasterType() |
float |
getWidthRatio()
获取宽的比例值
|
float |
getXRatio()
获取x坐标的比例值
|
float |
getYRatio()
获取y坐标的比例值
|
void |
setHeightRatio(float heightRatio)
设置高的比例值
|
void |
setWidthRatio(float widthRatio)
设置宽的比例值
|
void |
setXRatio(float xRatio)
设置x坐标的比例值
|
void |
setYRatio(float yRatio)
设置y坐标的比例值
|
EffectSticker |
toEffectSticker()
转换成
EffectSticker 实体类 |
java.lang.String |
toString() |
checkIsInvalid, getPath, getResId, getSource, getViewId, readString, setPath, setResId, setSource, setViewId
public static final int PASTER_TYPE_GIF
@Deprecated public static final int PASTER_TYPE_TEXT
PASTER_TYPE_CAPTION
代替public static final int PASTER_TYPE_CAPTION
public static final int PASTER_TYPE_IMAGE
public java.lang.String name
public int width
public int height
public long start
public long end
public float y
public float x
public int displayWidth
public int displayHeight
public float rotation
public long duration
@Deprecated public int kernelFrame
public java.util.List<Frame> frameArry
public java.util.List<FrameTime> timeArry
public boolean mirror
public boolean isTrack
public ActionBase action
@Deprecated public EffectPaster(java.lang.String path)
public EffectPaster(Source source)
public int getPasterType()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public float getXRatio()
public void setXRatio(float xRatio)
xRatio
- 比例值 [0 - 1]public float getYRatio()
public void setYRatio(float yRatio)
yRatio
- 比例值 [0 - 1]public float getWidthRatio()
public void setWidthRatio(float widthRatio)
widthRatio
- 宽比例 [0 - 1]public float getHeightRatio()
public void setHeightRatio(float heightRatio)
heightRatio
- 高比例 [0 - 1]public void copy(EffectBase base)
copy
in class EffectBase
public java.lang.String toString()
toString
in class EffectBase
public EffectSticker toEffectSticker()
EffectSticker
实体类
v3.27.0 新增
EffectSticker