public interface IEffectRect
Added in v3.27.0 The rect interface of effect bean
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
float getXRadio()
void setXRadio(float xRatio)
xRatio
- The x coordinate. Valid values: [0, 1]float getYRadio()
void setYRatio(float yRatio)
yRatio
- The y coordinate. Valid values: [0, 1]float getWidthRatio()
void setWidthRatio(float widthRatio)
widthRatio
- The width. Valid values: [0, 1]float getHeightRatio()
void setHeightRatio(float heightRatio)
heightRatio
- The height. Valid values: [0, 1]float getRotation()
void setRotation(float radian)
radian
-