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, toStringpublic boolean isFlipH()
public void setFlipH(boolean flip)
flip - public float getXRadio()
IEffectRectgetXRadio in interface IEffectRectpublic void setXRadio(float xRatio)
IEffectRectsetXRadio in interface IEffectRectxRatio - The x coordinate. Valid values: [0, 1]public float getYRadio()
IEffectRectgetYRadio in interface IEffectRectpublic void setYRatio(float yRatio)
IEffectRectsetYRatio in interface IEffectRectyRatio - The y coordinate. Valid values: [0, 1]public float getWidthRatio()
IEffectRectgetWidthRatio in interface IEffectRectpublic void setWidthRatio(float widthRatio)
IEffectRectsetWidthRatio in interface IEffectRectwidthRatio - The width. Valid values: [0, 1]public float getHeightRatio()
IEffectRectgetHeightRatio in interface IEffectRectpublic void setHeightRatio(float heightRatio)
IEffectRectsetHeightRatio in interface IEffectRectheightRatio - The height. Valid values: [0, 1]public float getRotation()
IEffectRectgetRotation in interface IEffectRectpublic void setRotation(float radian)
IEffectRectsetRotation in interface IEffectRectpublic EffectSticker copy()
public void copy(EffectSticker effectSticker)