Android resizable rectangle crop

2020-02-29 03:25发布

问题:

I need to crop a picture using a resizable rectangle based on user touch events. I'm doing this because the crop intent feature isn't supported by all devices, so I'm creating my own.

I have the original image as a bitmap and it's displayed on the screen as an image view.

Now what I need to do next is have a rectangle (already know size it needs to be) that can be resized and moved for the user to crop the image (Say get a face).

How can I create a resizable rectangle like this?

回答1:

CropImage has worked great for me.