public class EffectText extends EffectPaster
Modifier and Type | Field and Description |
---|---|
float |
bitmapScale
字号过大,emoji 无法生成图片,使用该参数,缩放
|
int |
breakStrategy
复制 TextView StaticLayout 里面的参数
|
int |
dTextColor
配置文件中默认的文字颜色
|
int |
dTextStrokeColor
配置文件中默认文字描边的颜色
|
java.lang.String |
font
Deprecated.
|
Source |
fontSource
字体文件资源
|
boolean |
hasLabel
是否有文字背景
|
boolean |
hasStroke
是否有描边
|
Bitmap |
mBackgroundBmp
背景图片
|
java.lang.String |
mBackgroundBmpPath
背景图片的文件存储路径
|
boolean |
mIncludePad |
float |
mSpacingAdd |
float |
mSpacingMult |
Layout.Alignment |
mTextAlignment
文字对齐方式
|
int |
mTextMaxLines
文字最大行数
|
int |
mTextPaddingX
文字左边距,以左上角为原点
|
int |
mTextPaddingY
文字上边距,以左上角为原点
|
int |
mTextSize
文字字号
|
boolean |
needSaveBmp
是否需要保存文字图片
|
java.lang.String |
text
文字内容
|
Layout.Alignment |
textAlignment
对齐方式
|
java.lang.String |
textBmpPath
文字view生成的图片的路径
|
int |
textColor
文字颜色
|
int |
textHeight
文字view的高度
|
int |
textLabelColor
文字背景颜色
|
int |
textStrokeColor
文字描边的颜色
|
int |
textWidth
文字view的宽度
|
boolean |
useLineSpacingFromFallbacks |
action, displayHeight, displayWidth, duration, end, frameArry, height, isTrack, kernelFrame, mirror, name, PASTER_TYPE_CAPTION, PASTER_TYPE_GIF, PASTER_TYPE_IMAGE, PASTER_TYPE_TEXT, rotation, start, timeArry, width, x, y
mSource, resId, viewId
Constructor and Description |
---|
EffectText(Source source) |
EffectText(java.lang.String path)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
copy(EffectBase base) |
java.lang.String |
generateTextFinger() |
java.lang.String |
getFontPath() |
Source |
getFontSource() |
int |
getPasterType() |
java.lang.String |
toString() |
equals, getHeightRatio, getWidthRatio, getXRatio, getYRatio, setHeightRatio, setWidthRatio, setXRatio, setYRatio, toEffectSticker
checkIsInvalid, getPath, getResId, getSource, getViewId, readString, setPath, setResId, setSource, setViewId
public Layout.Alignment textAlignment
public java.lang.String text
public java.lang.String textBmpPath
public int textWidth
public int textHeight
public int textColor
public int dTextColor
public int textStrokeColor
public int dTextStrokeColor
@Deprecated public java.lang.String font
public Source fontSource
public boolean hasStroke
public boolean hasLabel
public int textLabelColor
public Bitmap mBackgroundBmp
public java.lang.String mBackgroundBmpPath
public int mTextSize
public int mTextPaddingX
public int mTextPaddingY
public Layout.Alignment mTextAlignment
public boolean needSaveBmp
public int mTextMaxLines
public float bitmapScale
public int breakStrategy
public boolean useLineSpacingFromFallbacks
public float mSpacingMult
public float mSpacingAdd
public boolean mIncludePad
@Deprecated public EffectText(java.lang.String path)
public EffectText(Source source)
public java.lang.String generateTextFinger()
public int getPasterType()
getPasterType
in class EffectPaster
public java.lang.String getFontPath()
public Source getFontSource()
public void copy(EffectBase base)
copy
in class EffectPaster
public java.lang.String toString()
toString
in class EffectPaster