Code example for Bitmap

Methods: getConfiggetHeightgetWidth

0
	 * BitmapWeigher  
	 */ 
	private static class BitmapWeigher implements Weigher<Bitmap> {
		@Override 
		public int weightOf(Bitmap bitmap) {
			return bitmap.getWidth() * bitmap.getHeight() * (bitmap.getConfig() == Bitmap.Config.ARGB_8888 ? 4 : 2);//4;
		} 
	} 
 
} 
Experience pair programming with AI  Get Codota for Java