|
-
Apr 18th, 2025, 05:58 PM
#3
Thread Starter
Fanatic Member
Re: Image crop
 Originally Posted by jpbro
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)
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|