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, toStringpublic EffectImage(Bitmap bitmap)
bitmap - The bitmap image.public EffectImage(Source source)
source - The image path.public Bitmap getBitmap()
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 EffectImage copy()
public void copy(EffectImage effectImage)