Java 类android.graphics.DrawFilter 实例源码

项目:libcommon    文件:ShaderDrawable.java   
@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);
    }
}
项目:rastertheque    文件:SafeTranslatedCanvas.java   
@Override
public DrawFilter getDrawFilter() {
    return getWrappedCanvas().getDrawFilter();
}
项目:rastertheque    文件:SafeTranslatedCanvas.java   
@Override
public void setDrawFilter(DrawFilter filter) {
    getWrappedCanvas().setDrawFilter(filter);
}
项目:Simplicissimus    文件:SmoothCanvas.java   
@Override
public DrawFilter getDrawFilter() {
    return this.delegate.getDrawFilter();
}
项目:Simplicissimus    文件:SmoothCanvas.java   
@Override
public void setDrawFilter(DrawFilter filter) {
    this.delegate.setDrawFilter(filter);
}
项目:OpenMapKitAndroid    文件:SafeTranslatedCanvas.java   
@Override
public DrawFilter getDrawFilter() {
    return getWrappedCanvas().getDrawFilter();
}
项目:OpenMapKitAndroid    文件:SafeTranslatedCanvas.java   
@Override
public void setDrawFilter(DrawFilter filter) {
    getWrappedCanvas().setDrawFilter(filter);
}
项目:madge    文件:DelegateCanvas.java   
@Override public DrawFilter getDrawFilter() {
  return delegate.getDrawFilter();
}
项目:madge    文件:DelegateCanvas.java   
@Override public void setDrawFilter(DrawFilter filter) {
  delegate.setDrawFilter(filter);
}
项目:rastertheque    文件:ISafeCanvas.java   
public abstract DrawFilter getDrawFilter();
项目:rastertheque    文件:ISafeCanvas.java   
public abstract void setDrawFilter(DrawFilter filter);
项目:OpenMapKitAndroid    文件:ISafeCanvas.java   
public abstract DrawFilter getDrawFilter();
项目:OpenMapKitAndroid    文件:ISafeCanvas.java   
public abstract void setDrawFilter(DrawFilter filter);