public class EffectImage extends EffectBase implements IEffectRect
mSource, resId, viewId
Constructor and Description |
---|
EffectImage(Bitmap bitmap)
图片的bitmap对象
|
EffectImage(Source source)
图片文件路径
|
Modifier and Type | Method and Description |
---|---|
EffectImage |
copy() |
void |
copy(EffectImage effectImage) |
Bitmap |
getBitmap()
获取的图片bitmap对象
|
float |
getHeightRatio()
获取高的比例值
|
float |
getRotation()
获取字幕旋转的弧度
|
float |
getWidthRatio()
获取宽的比例值
|
float |
getXRadio()
获取x坐标的比例值
|
float |
getYRadio()
获取y坐标的比例值
|
void |
setHeightRatio(float heightRatio)
设置高的比例值
|
void |
setRotation(float radian)
设置字幕当前旋转的弧度
|
void |
setWidthRatio(float widthRatio)
设置宽的比例值
|
void |
setXRadio(float xRatio)
设置x坐标的比例值
|
void |
setYRatio(float yRatio)
设置y坐标的比例值
|
checkIsInvalid, copy, getPath, getResId, getSource, getViewId, readString, setPath, setResId, setSource, setViewId, toString
public EffectImage(Bitmap bitmap)
bitmap
- public EffectImage(Source source)
source
- public Bitmap getBitmap()
public float getXRadio()
IEffectRect
getXRadio
in interface IEffectRect
public void setXRadio(float xRatio)
IEffectRect
setXRadio
in interface IEffectRect
xRatio
- 比例值 [0 - 1]public float getYRadio()
IEffectRect
getYRadio
in interface IEffectRect
public void setYRatio(float yRatio)
IEffectRect
setYRatio
in interface IEffectRect
yRatio
- 比例值 [0 - 1]public float getWidthRatio()
IEffectRect
getWidthRatio
in interface IEffectRect
public void setWidthRatio(float widthRatio)
IEffectRect
setWidthRatio
in interface IEffectRect
widthRatio
- 宽比例 [0 - 1]public float getHeightRatio()
IEffectRect
getHeightRatio
in interface IEffectRect
public void setHeightRatio(float heightRatio)
IEffectRect
setHeightRatio
in interface IEffectRect
heightRatio
- 高比例 [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)