Resize rectangle -java, Android

asked 2018-04-10 08:15:10 -0500

EleDiam6 gravatar image

I have drawn a rectangle using Imgproc.rectangle(imageSetup, topLeft1, bottomRight1, new Scalar(255, 0, 0), 2); and I want the user to be able to resize it once created using onTouchEvent(). I have tried to implement some codes like this but without success. Is it even possible to do it using onTouchEvent and if not, is there any other approach to successfully resize a drawn rectangle?

edit retag flag offensive close merge delete