public final class FilterSmudgeProcessor extends SimpleProcessor
brushSnap, currentSnap, mBrushScale, mCurrentBrush, originalImage, originalSnap, smudgeCanvas
构造器和说明 |
---|
FilterSmudgeProcessor()
构造函数
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
destroy() |
protected void |
drawAtPoint(float x,
float y,
float d,
float scale,
float angle)
根据笔刷类型采用不同的绘制方式
|
protected org.lasque.tusdk.core.seles.tusdk.FilterWrap |
getFilterWrap()
获取滤镜对象
|
protected float |
getMaxTemplateDistance(float mBrushScale)
最大间距
|
protected void |
init(android.graphics.Bitmap originalImage,
android.graphics.Bitmap scaledImage,
int screenWidth)
初始化
|
protected void |
setBrush(BrushData brush) |
protected void |
setBrushSize(BrushSize.SizeType size) |
protected void |
setFilterWrap(org.lasque.tusdk.core.seles.tusdk.FilterWrap filterWrap)
滤镜对象
|
drawBetweenPoints, getBrush, getCanvasImage, getImageHeight, getImageWidth, getMaxUndoCount, getOriginalImage, getRedoCount, getRedoData, getSmudgeImage, getUndoCount, getUndoData, saveCurrentAsHistory, setMaxUndoCount, touchBegan
protected void init(android.graphics.Bitmap originalImage, android.graphics.Bitmap scaledImage, int screenWidth)
init
在类中 SimpleProcessor
originalImage
- 原始图像scaledImage
- 适应屏幕尺寸的图像screenWidth
- 视图宽度protected void setBrush(BrushData brush)
setBrush
在类中 SimpleProcessor
brush
- protected void setBrushSize(BrushSize.SizeType size)
setBrushSize
在类中 SimpleProcessor
size
- protected org.lasque.tusdk.core.seles.tusdk.FilterWrap getFilterWrap()
protected final void setFilterWrap(org.lasque.tusdk.core.seles.tusdk.FilterWrap filterWrap)
protected float getMaxTemplateDistance(float mBrushScale)
getMaxTemplateDistance
在类中 SimpleProcessor
mBrushScale
- 笔刷缩放protected void drawAtPoint(float x, float y, float d, float scale, float angle)
drawAtPoint
在类中 SimpleProcessor
protected void destroy()
destroy
在类中 SimpleProcessor