Resize a rectangle in Android

I need to crop the image using resizable rectangle based on custom touch events. I do this because the cropping intent function is not supported by all devices, so I create my own.

I have the original image as a bitmap, and it is displayed on the screen as an image.

Now I need to make a rectangle (you already know what size it should be), which can be resized and moved for the user to crop the image (say, get a face).

How to create a resizable rectangle like this?

+5
source share
1 answer

CropImage did a great job for me.

+9

All Articles