Increase cover background blur amount
This is really hacky, but looks incredible. Good enough for now.
This commit is contained in:
parent
514eb00797
commit
c6729e427b
|
@ -12,6 +12,14 @@ class BlurBuilder {
|
||||||
private static final float BLUR_RADIUS = 25f;
|
private static final float BLUR_RADIUS = 25f;
|
||||||
|
|
||||||
public static Bitmap blur(Context context, Bitmap image) {
|
public static Bitmap blur(Context context, Bitmap image) {
|
||||||
|
Bitmap newImage = image;
|
||||||
|
for(int i = 0; i<3; i++) {
|
||||||
|
newImage = blur_real(context, newImage);
|
||||||
|
}
|
||||||
|
return newImage;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Bitmap blur_real(Context context, Bitmap image) {
|
||||||
int width = Math.round(image.getWidth() * BITMAP_SCALE);
|
int width = Math.round(image.getWidth() * BITMAP_SCALE);
|
||||||
int height = Math.round(image.getHeight() * BITMAP_SCALE);
|
int height = Math.round(image.getHeight() * BITMAP_SCALE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue