Out of memory during loading images taken with the camera
<p>I am loading an image scale it to screen size and after that the user can draw some text on it using his hand.  </p>

<p>After that user can save it to SD card. I need to save it to same width and height as original image has. For others sample image it is working fine. But when i am loading the image captured by camera and once i draw something on draw. I try to scale image back to original height and width but it is giving Exception "Out of Memory Exception" for all the images captured by camera. The code is as follows:</p>

<pre><code>private void saveView(View view) {
        Bitmap b = Bitmap.createBitmap(view.getWidth(), view.getHeight(),
                Bitmap.Config.ARGB_8888);
        String filePath="/sdcard/";
        Canvas c = new Canvas(b);


        view.draw(c);
        float scaleHeight=((float)getHeight()/b.getHeight());
        float scaleWidth=((float)getWidth()/b.getWidth());
        Matrix matrix=new Matrix();
        matrix.postScale(scaleWidth, scaleHeight);
        Log.e("getWidth()", ":"+getWidth());
        Log.e("getHeight()", ":"+getHeight());

              **//Giving Exception at below Line as i am trying to scat it to origenal size.
        b=Bitmap.createBitmap(b,0,0,b.getWidth(),b.getHeight(),matrix,true);**
</code></pre>
