I am looking to create a simple image cropping tool for pictures loaded into a canvas.
I can do the crop no problem by using fixed coordinates in the code.
What I am struggling with is how to draw an outline rectangle over the canvas picture and then get the coordinates of that rectangle to do the crop.
Something like this (screenshot from another app that does what I am looking to do)
Can anybody help me out pls?