title: How to get the size of bitmap after displaying it in ImageView
body: <p>I have a imageview </p>
  
  <pre><code>&lt;ImageView
          android:id="@+id/imgCaptured"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:adjustViewBounds="true"
          android:scaleType="fitXY"
          android:src="@drawable/captured_image" /&gt;
  </code></pre>
  
  <p>I capture a image from camera, converted that image into bitmap.</p>
  
  <pre><code>Bitmap thumbnail;
  thumbnail = MediaStore.Images.Media.getBitmap(getActivity()
                      .getContentResolver(), imageUri);
  </code></pre>
  
  <p>when i get the resolution of this bitmap before displaying it in my above imageview, like</p>
  
  <pre><code>Log.i("ImageWidth = " + thumbnail.getWidth(), "ImageHeight = "
                  + thumbnail.getHeight());
  </code></pre>
  
  <p>its returning me <code>ImageWidth = 2592  ImageHeight = 1936</code></p>
  
  <p>after this i displayed this bitmap in my above imageview as <code>imgCaptured.setImageBitmap(thumbnail);</code>  then i go size of my imageview as </p>
  
  <pre><code>Log.i("ImageView Width = " + imgCaptured.getWidth(),
                  "ImageView Height = " + imgCaptured.getHeight());
  </code></pre>
  
  <p>this returned me <code>ImageView Width = 480  ImageView Height = 720</code></p>
  
  <p><strong>now my question is that</strong></p>
  
  <ul>
  <li><p>How can i get the size of that bitmap <strong>after</strong> displaying it in my imageview.
  I know this can be done by using this</p>
  
  <pre><code>image.buildDrawingCache();
  Bitmap bmap = image.getDrawingCache();
  </code></pre>
  
  <p>but this will create a new bitmap of size equal to that of imageview.</p></li>
  <li><p>I also want to know that, Does image resized automatically after displaying it in the imageview. if yes then is there any way to display the image in imageview without resizing the image.</p></li>
  </ul>
  
  <p><strong>Edit</strong></p>
  
  <p>Actually i have captured an image of 2592x1936. I displayed this image in my imageView, did some other operations on this image . now i want to save this image with same 2592x1936 resolution. is it possible?</p>
  
  <p>Thanks in advance.</p>