title: how to crop top,left,right and bottom portion of imageview in android
body: <p>In my application i am getting transparent pixels in my Imageview while taking screenshot.How to cut top,left,right<img src="https://i.stack.imgur.com/Z0iAG.png" alt="enter image description here"> and bottom portion of Imageview.I tried below code but not working</p>
  
  <pre><code>Bitmap bitmap = Bitmap.createBitmap(imgView.getWidth(),imgView.getHeight(),                   Bitmap.Config.RGB_565);
  Canvas canvas = new Canvas(bitmap);
  imgView.draw(canvas);
  Bitmap result =Bitmap.createBitmap(bitmap,imgView.getLeft()+10, imgView.getTop()+50,    imgView.getWidth()-20, imgView.getHeight()-100);
   bitmap.recycle();
  </code></pre>
  
  <p>please help me to solve this issue.</p>
  
  <p><img src="https://i.stack.imgur.com/Z0iAG.png" alt="enter image description here"></p>