android.graphics.DrawFilter Java Examples
The following examples show how to use
android.graphics.DrawFilter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ShaderDrawable.java From libcommon with Apache License 2.0 | 5 votes |
@Override public void draw(@NonNull 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); } }
Example #2
Source File: SafeTranslatedCanvas.java From OpenMapKitAndroid with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public DrawFilter getDrawFilter() { return getWrappedCanvas().getDrawFilter(); }
Example #3
Source File: SafeTranslatedCanvas.java From OpenMapKitAndroid with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void setDrawFilter(DrawFilter filter) { getWrappedCanvas().setDrawFilter(filter); }
Example #4
Source File: DelegateCanvas.java From madge with Apache License 2.0 | 4 votes |
@Override public DrawFilter getDrawFilter() { return delegate.getDrawFilter(); }
Example #5
Source File: DelegateCanvas.java From madge with Apache License 2.0 | 4 votes |
@Override public void setDrawFilter(DrawFilter filter) { delegate.setDrawFilter(filter); }
Example #6
Source File: ISafeCanvas.java From OpenMapKitAndroid with BSD 3-Clause "New" or "Revised" License | votes |
public abstract DrawFilter getDrawFilter();
Example #7
Source File: ISafeCanvas.java From OpenMapKitAndroid with BSD 3-Clause "New" or "Revised" License | votes |
public abstract void setDrawFilter(DrawFilter filter);