title: More Blurred With RenderScript In Android
body: <p>For my project i want to use blurred backgrounds.When i use the following method,it does my background blur but it is not blurred enough for me,i want to do more blurry background.I set the radius as its maximum value 25.Someone can help me ?</p>
  
  <pre><code>private static final float BITMAP_SCALE = 0.9f;
  private static final float BLUR_RADIUS = 25.0f;
  
  public static Bitmap blur(Context context, Bitmap image) {
      int width = Math.round(image.getWidth() * BITMAP_SCALE);
      int height = Math.round(image.getHeight() * BITMAP_SCALE);
  
      Bitmap inputBitmap = Bitmap.createScaledBitmap(image, width, height, false);
      Bitmap outputBitmap = Bitmap.createBitmap(inputBitmap);
  
      RenderScript rs = RenderScript.create(context);
      ScriptIntrinsicBlur theIntrinsic = ScriptIntrinsicBlur.create(rs, Element.U8_4(rs));
      Allocation tmpIn = Allocation.createFromBitmap(rs, inputBitmap);
      Allocation tmpOut = Allocation.createFromBitmap(rs, outputBitmap);
      theIntrinsic.setRadius(BLUR_RADIUS);
      theIntrinsic.setInput(tmpIn);
      theIntrinsic.forEach(tmpOut);
      tmpOut.copyTo(outputBitmap);
  
      return outputBitmap;
  
  
  }
  </code></pre>