Code example for Canvas

Methods: setDrawFilter

 * Various utilities shared amongst the Launcher's classes. 
final class Utilities { 
    private static int sIconWidth = -1;
    private static int sIconHeight = -1;
    private static final Paint sPaint = new Paint();
    private static final Rect sBounds = new Rect();
    private static final Rect sOldBounds = new Rect();
    private static Canvas sCanvas = new Canvas();
    static { 
        sCanvas.setDrawFilter(new PaintFlagsDrawFilter(Paint.DITHER_FLAG,
     * Returns a Drawable representing the thumbnail of the specified Drawable. 
Connect your IDE to all the code out there  Get Codota for Java