本文整理汇总了Java中android.graphics.DrawFilter类的典型用法代码示例。如果您正苦于以下问题:Java DrawFilter类的具体用法?Java DrawFilter怎么用?Java DrawFilter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DrawFilter类属于android.graphics包,在下文中一共展示了DrawFilter类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: draw
import android.graphics.DrawFilter; //导入依赖的package包/类
@Override
public void draw(final Canvas canvas) {
if (mShader != null) {
final int count = canvas.save();
final DrawFilter org = canvas.getDrawFilter();
canvas.setDrawFilter(mDrawFilter);
mPaint.setShader(mShader);
canvas.drawPaint(mPaint);
canvas.setDrawFilter(org);
canvas.restoreToCount(count);
}
}
示例2: getDrawFilter
import android.graphics.DrawFilter; //导入依赖的package包/类
@Override
public DrawFilter getDrawFilter() {
return getWrappedCanvas().getDrawFilter();
}
示例3: setDrawFilter
import android.graphics.DrawFilter; //导入依赖的package包/类
@Override
public void setDrawFilter(DrawFilter filter) {
getWrappedCanvas().setDrawFilter(filter);
}
示例4: getDrawFilter
import android.graphics.DrawFilter; //导入依赖的package包/类
@Override
public DrawFilter getDrawFilter() {
return this.delegate.getDrawFilter();
}
示例5: setDrawFilter
import android.graphics.DrawFilter; //导入依赖的package包/类
@Override
public void setDrawFilter(DrawFilter filter) {
this.delegate.setDrawFilter(filter);
}
示例6: getDrawFilter
import android.graphics.DrawFilter; //导入依赖的package包/类
@Override public DrawFilter getDrawFilter() {
return delegate.getDrawFilter();
}
示例7: setDrawFilter
import android.graphics.DrawFilter; //导入依赖的package包/类
@Override public void setDrawFilter(DrawFilter filter) {
delegate.setDrawFilter(filter);
}
示例8: getDrawFilter
import android.graphics.DrawFilter; //导入依赖的package包/类
public abstract DrawFilter getDrawFilter();
示例9: setDrawFilter
import android.graphics.DrawFilter; //导入依赖的package包/类
public abstract void setDrawFilter(DrawFilter filter);