public class EffectPaster extends EffectBase
限定符和类型 | 字段和说明 |
---|---|
long |
duration
The duration of this sticker file.
|
long |
end
The preset time when this sticker disappears.
|
java.util.List<com.aliyun.svideo.sdk.internal.project.Frame> |
frameArry
The frames of this sticker.
|
int |
height
The height of this sticker.
|
boolean |
isTrack
Whether to track the movements of human faces.
|
int |
kernelFrame
已过时。
|
boolean |
mirror
Whether this sticker is flipped.
|
java.lang.String |
name
The resource name.
|
static int |
PASTER_TYPE_CAPTION
Animated caption.
|
static int |
PASTER_TYPE_GIF
Normal sticker.
|
static int |
PASTER_TYPE_TEXT
Standard caption.
|
float |
rotation
The rotation angle of this sticker.
|
long |
start
The preset time when this sticker appears.
|
java.util.List<com.aliyun.svideo.sdk.internal.project.FrameTime> |
timeArry
The timestamps.
|
int |
width
The width of this sticker.
|
int |
x
The x coordinate of the centroid of this sticker.
|
int |
y
The y coordinate of the centroid of this sticker.
|
构造器和说明 |
---|
EffectPaster(java.lang.String path) |
限定符和类型 | 方法和说明 |
---|---|
void |
copy(EffectBase base)
Gets a copy of the parameters of an object.
|
boolean |
equals(java.lang.Object obj) |
float |
getHeightRatio()
Gets the height of this sticker relative to the screen resolution.
|
int |
getPasterType() |
float |
getWidthRatio()
Gets the width of this sticker relative to the screen resolution.
|
float |
getXRatio()
Gets the x coordinate of the centroid of this sticker relative to the screen resolution.
|
float |
getYRatio()
Gets the y coordinate of the centroid of this sticker relative to the screen resolution.
|
boolean |
isPasterReady()
已过时。
|
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 |
setXRatio(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.
|
java.lang.String |
toString() |
getAnimationType, getPath, getResId, getViewId, readString, setAnimationType, setPath, setResId, setViewId
public static final int PASTER_TYPE_GIF
public static final int PASTER_TYPE_TEXT
public static final int PASTER_TYPE_CAPTION
public java.lang.String name
public int width
public int height
public long start
public long end
public int y
public int x
public float rotation
public long duration
@Deprecated public int kernelFrame
public java.util.List<com.aliyun.svideo.sdk.internal.project.Frame> frameArry
public java.util.List<com.aliyun.svideo.sdk.internal.project.FrameTime> timeArry
public boolean mirror
public boolean isTrack
@Deprecated public boolean isPasterReady()
public int getPasterType()
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public float getXRatio()
public void setXRatio(float xRatio)
xRatio
- The x coordinate. Valid values: [0, 1]public float getYRatio()
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]public void copy(EffectBase base)
EffectBase
copy
在类中 EffectBase
public java.lang.String toString()
toString
在类中 EffectBase