title: Getting a cropped image from ImageView
body: <p>I use ImageView to crop a bitmap.
  Once it is cropped I want to get that cropped image, but I get the same as the original.
  Is there a way to get only the viewable part of the image?</p>
  
  <pre><code>ImageView iv = new  ImageView(this);                        
  iv.setImageBitmap(OriginalBitmap);
  iv.setScaleType(ScaleType.CENTER_CROP);
  Bitmap CroppedBitmap = ((BitmapDrawable) iv.getDrawable()).getBitmap();
  </code></pre>
  
  <p>The value of CroppedBitmap is as the OriginalBitmap. How can I get the cropped one?</p>