public class EffectImage extends EffectBase implements IEffectRect
mSource, resId, viewId
Constructor and Description |
---|
EffectImage(Bitmap bitmap)
Creates an EffectImage object with a bitmap image.
|
EffectImage(Source source)
Creates an EffectImage object with an image path.
|
Modifier and Type | Method and Description |
---|---|
EffectImage |
copy() |
void |
copy(EffectImage effectImage) |
Bitmap |
getBitmap()
Gets the bitmap object of this image.
|
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.
|
checkIsInvalid, copy, getPath, getResId, getSource, getViewId, readString, setPath, setResId, setSource, setViewId, toString
public EffectImage(Bitmap bitmap)
bitmap
- The bitmap image.public EffectImage(Source source)
source
- The image path.public Bitmap getBitmap()
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 EffectImage copy()
public void copy(EffectImage effectImage)