title: Bitmap.createBitmap(Bitmap source, int x, int y, int width, int height) return wrong bitmap
body: <p>I have to crop a bitmap image. For this, I am using </p>
  
  <pre><code>Bitmap bitmap = Bitmap.createBitmap(imgView.getWidth(),imgView.getHeight(), Bitmap.Config.RGB_565);
  Bitmap result =Bitmap.createBitmap(bitmap,imgView.getLeft()+10, imgView.getTop()+50, imgView.getWidth()-20, imgView.getHeight()-100);
  bitmap.recycle();
  Canvas canvas = new Canvas(result);
  imgView.draw(canvas);
  </code></pre>
  
  <p>But it cuts the bottom and right of the bitmap. Top and Left part of the bitmap exists in the output. That means x and y position has no effect.</p>
  
  <p>I am searched for good documentation. But I couldn't.</p>
  
  <p>Thanks in Advance</p>
  
  <p>What is the problem here and how to solve?</p>