title: Reducing BitmapDrawable size
body: <p>I am reducing size of images with this function:</p>
  
  <pre><code>Drawable reduceImageSize (String path) 
  {
      BitmapDrawable bit1 = (BitmapDrawable) Drawable.createFromPath(path);
      Bitmap bit2 = Bitmap.createScaledBitmap(bit1.getBitmap(), 640, 360, true);
      BitmapDrawable bit3 = new BitmapDrawable(getResources(),bit2);
      return bit3;
  }
  </code></pre>
  
  <p>And its working fine, the only problem is when I call this function multiple time the app is getting slow, is there any way to optimize this function? Maybe reducing size via matrix?
  Also I am reading images from SD Card and need the back as Drawable for animations, and this function provides this.</p>