public static Bitmap downscaleBitmap(Bitmap wallpaper, int factor) {
		// convert to bitmap and get the center
		int widthPixels = wallpaper.getWidth() / factor;
		int heightPixels = wallpaper.getHeight() / factor;
		return ThumbnailUtils.extractThumbnail(wallpaper, widthPixels, heightPixels);
	}
Downscales a bitmap by the specified factor
subs/game/src/main/java/com/snatik/matches/utils/Utils.java