Resize bitmap without losing quality
<p>I loading pictures from sd card to bitmap. Files are jpeg. I am doing that in this way:</p>

<pre><code>Bitmap b = BitmapFactory.decodeFile("/sdcard/DinEgen/"+name.get(position), null);
        Bitmap img = Bitmap.createScaledBitmap( b, width, height, true);

         b.recycle();
        i.setImageBitmap(img);
</code></pre>

<p>But when I scaledBitmap I lose quality. When I use only "bitmap b" quality is good. So I am losing quelity when I use <code>createScaledBitmap</code>. How I can scale bitmap b to size from <code>hight</code> and <code>width</code> variable?</p>
