Code example for Bitmap

Methods: getConfiggetHeightgetWidthrecycle

0
 
		@Override 
		protected Bitmap onGetBitmap() {
			final Bitmap orig = super.onGetBitmap();
			if (mPaint.getColorFilter() == null) return orig;
			final Bitmap bitmap = Bitmap.createBitmap(orig.getWidth(), orig.getHeight(), orig.getConfig());
			final Canvas c = new Canvas(bitmap);
			c.drawBitmap(orig, 0, 0, mPaint);
			orig.recycle();
			return bitmap;
		} 
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java