Code example for Bitmap

Methods: extractAlphagetHeightgetWidth

0
            } 
 
            dest.drawColor(0, PorterDuff.Mode.CLEAR);
 
            int[] xy = new int[2];
            Bitmap mask = src.extractAlpha(sBlurPaint, xy);
 
            float px = (destWidth - src.getWidth()) / 2;
            float py = (destHeight - src.getHeight()) / 2;
            dest.drawBitmap(mask, px + xy[0], py + xy[1],
                    pressed ? sGlowColorPressedPaint : sGlowColorFocusedPaint);
 
            mask.recycle();
        } 
    } 
 
    /** 
     * Returns a Bitmap representing the thumbnail of the specified Bitmap. 
     * The size of the thumbnail is defined by the dimension 
     * android.R.dimen.launcher_application_icon_size. 
Connect your IDE to all the code out there  Get Codota for Java