Here you can find the source of blurred(Bitmap source)
public static Bitmap blurred(Bitmap source)
//package com.java2s; import android.graphics.Bitmap; public class Main { private static final int MIN_SIZE = 20; private static int[] scales = new int[] { 2, 2, 2, 2 }; public static Bitmap blurred(Bitmap source) { int i = 0; for (i = 0; i < scales.length && source.getWidth() > MIN_SIZE && source.getHeight() > MIN_SIZE; i++) source = Bitmap.createScaledBitmap(source, source.getWidth() / scales[i], source.getHeight() / scales[i], true); for (i--; i >= 0; i--) source = Bitmap.createScaledBitmap(source, source.getWidth() * scales[i], source.getHeight() * scales[i], true); return source; }//from w ww .j a v a 2 s.co m }