public class EffectPaster extends EffectBase
Modifier and Type | Field and Description |
---|---|
ActionBase |
action
Action Animation
|
int |
displayHeight
The display height corresponding to the current data
|
int |
displayWidth
The display width corresponding to the current data
|
long |
duration
The duration of this sticker file.
|
long |
end
The preset time when this sticker disappears.
|
java.util.List<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
Deprecated.
|
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_IMAGE
Image
|
static int |
PASTER_TYPE_TEXT
Deprecated.
|
float |
rotation
The rotation angle of this sticker.
|
long |
start
The preset time when this sticker appears.
|
java.util.List<FrameTime> |
timeArry
The timestamps.
|
int |
width
The width of this sticker.
|
float |
x
The x coordinate of the centroid of this sticker.
|
float |
y
The y coordinate of the centroid of this sticker.
|
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)
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.
|
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.
|
EffectSticker |
toEffectSticker()
Transform to
EffectSticker bean |
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
insteadpublic 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
- 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
in class EffectBase
public java.lang.String toString()
toString
in class EffectBase
public EffectSticker toEffectSticker()
EffectSticker
bean
Added in v3.27.0
EffectSticker