public class TuEditSmudgeOption extends TuImageResultOption
构造器和说明 |
---|
TuEditSmudgeOption()
图片编辑涂抹控制器配置选项
|
限定符和类型 | 方法和说明 |
---|---|
TuEditSmudgeFragment |
fragment()
创建图片编辑滤镜控制器对象
|
int |
getBrushBarCellLayoutId()
笔刷列表行视图布局资源ID
|
int |
getBrushBarCellWidth()
行视图宽度
|
int |
getBrushBarHeight()
笔刷栏高度
|
java.util.List<java.lang.String> |
getBrushGroup()
需要显示的笔刷组 (如果为空将显示所有自定义笔刷)
|
BrushSize.SizeType |
getDefaultBrushSize()
默认的笔刷大小 (默认: BrushSize.SizeType.MediumBrush,中等粗细)
|
protected java.lang.Class<?> |
getDefaultComponentClazz()
图片编辑涂抹控制器类
|
protected int |
getDefaultRootViewLayoutId()
获取默认根视图布局资源ID
|
int |
getMaxUndoCount()
允许撤销的次数 (默认: 5)
|
boolean |
isSaveLastBrush()
记住用户最后一次使用的笔刷
|
void |
setBrushBarCellLayoutId(int mBrushBarCellLayoutId)
笔刷列表行视图布局资源ID
|
void |
setBrushBarCellWidth(int mBrushBarCellWidth)
行视图宽度
|
void |
setBrushBarCellWidthDP(int mBrushBarCellWidthDP)
行视图宽度 (单位:DP)
|
void |
setBrushBarHeight(int mBrushBarHeight)
笔刷栏高度
|
void |
setBrushBarHeightDP(int mBrushBarHeightDP)
笔刷栏高度 (单位:DP)
|
void |
setBrushGroup(java.util.List<java.lang.String> mBrushGroup)
需要显示的笔刷组 (如果为空将显示所有自定义笔刷)
|
void |
setDefaultBrushSize(BrushSize.SizeType mDefaultBrushSize)
默认的笔刷大小 (默认: lsqBrushMedium,中等粗细)
|
void |
setMaxUndoCount(int mMaxUndoCount)
允许撤销的次数 (默认: 5)
|
void |
setSaveLastBrush(boolean mSaveLastBrush)
记住用户最后一次使用的笔刷
|
fragmentInstance, isAutoRemoveTemp, isShowResultPreview, setAutoRemoveTemp, setShowResultPreview
getOutputCompress, getSaveToAlbumName, isSaveToAlbum, isSaveToTemp, setOutputCompress, setSaveToAlbum, setSaveToAlbumName, setSaveToTemp
getComponentClazz, getRootViewLayoutId, setComponentClazz, setRootViewLayoutId
protected java.lang.Class<?> getDefaultComponentClazz()
getDefaultComponentClazz
在类中 TuSdkComponentOption
protected int getDefaultRootViewLayoutId()
getDefaultRootViewLayoutId
在类中 TuSdkComponentOption
{@link org.lasque.tusdk.impl.components.smudge.TuEditSmudgeFragment}
public java.util.List<java.lang.String> getBrushGroup()
public void setBrushGroup(java.util.List<java.lang.String> mBrushGroup)
public int getBrushBarCellWidth()
public void setBrushBarCellWidth(int mBrushBarCellWidth)
public void setBrushBarCellWidthDP(int mBrushBarCellWidthDP)
public int getBrushBarCellLayoutId()
笔刷列表行视图布局资源ID
- (默认:
tusdk_impl_component_widget_brush_bar_item_cell,如需自定义请继承自
BrushBarItemCellBase){@link org.lasque.tusdk.modules.view.widget.sumdge.BrushBarItemCellBase}
public void setBrushBarCellLayoutId(int mBrushBarCellLayoutId)
笔刷列表行视图布局资源ID
- (默认:
tusdk_impl_component_widget_brush_bar_item_cell,如需自定义请继承自
BrushBarItemCellBase){@link org.lasque.tusdk.modules.view.widget.sumdge.BrushBarItemCellBase}
public int getBrushBarHeight()
public void setBrushBarHeight(int mBrushBarHeight)
public void setBrushBarHeightDP(int mBrushBarHeightDP)
public boolean isSaveLastBrush()
public void setSaveLastBrush(boolean mSaveLastBrush)
public BrushSize.SizeType getDefaultBrushSize()
public void setDefaultBrushSize(BrushSize.SizeType mDefaultBrushSize)
public int getMaxUndoCount()
public void setMaxUndoCount(int mMaxUndoCount)
public TuEditSmudgeFragment fragment()