Quote Originally Posted by jpbro View Post
Reasonably easy to do in RC6 & Cairo (if you're willing to use it) because it can do a lot of the math for you converting between device and image coordinates.

Here's a quick example project I made (comments by Gemini, edited by me). I'm sure Olaf could do it even more efficiently if he happens by and has time to provide an even tighter sample (there is a cControlPoint class in RC6 that I haven't had a chance to try yet that might make it possible to remove all the HitTest a Resize Handle stuff in my demo)

Name:  2025-04-18_18-09-56.jpg
Views: 524
Size:  16.4 KB


SOURCE CODE: ImageSel.zip
that looks like its what i am after. would it be poss to have 4 textboxes that hold the 4 coordinates of the actual image.
I have move from the Form to a picture box and would like to have Top Left , Top Right , Bottom Left ,Bottom right so
that i can have a button to pass these cords to my main app.

tks for helping