public class EffectSticker extends EffectBase implements IEffectRect
Added in v3.27.0 The sticker bean
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()
Gets the height of this sticker relative to the screen resolution.
|
float |
getRotation()
Get the radian of rotation of the caption
|
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.
|
boolean |
isFlipH()
Whether this sticker is flipped horizontal.
|
void |
setFlipH(boolean flip)
Set this sticker flip horizontal.
|
void |
setHeightRatio(float heightRatio)
Sets the height of this sticker relative to the screen resolution.
|
void |
setRotation(float radian)
Set the radian of rotation of the caption
|
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 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
- The x coordinate. Valid values: [0, 1]public float getYRadio()
IEffectRect
getYRadio
in interface IEffectRect
public void setYRatio(float yRatio)
IEffectRect
setYRatio
in interface IEffectRect
yRatio
- The y coordinate. Valid values: [0, 1]public float getWidthRatio()
IEffectRect
getWidthRatio
in interface IEffectRect
public void setWidthRatio(float widthRatio)
IEffectRect
setWidthRatio
in interface IEffectRect
widthRatio
- The width. Valid values: [0, 1]public float getHeightRatio()
IEffectRect
getHeightRatio
in interface IEffectRect
public void setHeightRatio(float heightRatio)
IEffectRect
setHeightRatio
in interface IEffectRect
heightRatio
- The height. Valid values: [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)