title: Crop particular part of image in android
body: <p>I want to crop Red part from following image, Is there any simple method available in android that can crop following image.</p>
  
  <p><img src="https://i.stack.imgur.com/bnapM.png" alt="Sample Image that i want to crop"></p>
  
  <p>I have found many SO questions but all are suggesting to used following code:</p>
  
  <pre><code>Bitmap croppedBitmap = Bitmap.createBitmap(bitmapOriginal, 100, 100,100, 100); 
  </code></pre>
  
  <p>This code work well if width &amp; height are around 2MP resolution, but if that cropped part is more than 3MP resolution than application got crashed with OOM error.</p>
  
  <p>Is there any way that handle image more than 3MP during cropping? </p>