2

I need to programmatically crop specific area from bitmap, like blue area on this image enter image description here

How I can do it?

Dmitriy Puchkov
  • 1,530
  • 17
  • 41

1 Answers1

4

It's just like below:

// x refers to width, y refers to height
//first find startx, starty, endx, endy
Bitmap blueArea = Bitmap.createBitmap(bitmap, startx, starty, endx, endy);
M. Erfan Mowlaei
  • 1,376
  • 1
  • 14
  • 25