|
-
Apr 18th, 2025, 11:27 AM
#1
Thread Starter
Fanatic Member
Image crop with GDI+
I have successfully create an app that can convert an image file type and/or resize.
I am looking at adding crop functionallity.
I use GDI + and know how to crop with this.
What i am looking for is a Form with Picture box and then being able to select an area.
the selected area will remain normal colour and the unselected will be slightly greyed out.
'I have already found the above.
I also would like to have the option that once i unclick my left mouse button that the selection remains and then be able to grab any side of the selection rectangle to move in or out to change the selection. (Not a major need but nice to have)
Is there anything already made that does this.
So the bit i need help with is if the image would be 3000x3000 but the picture box will be a lot smaller to be able to view the image.
how would i know the exact coordintes from the picturebox to select from the original imagefile at the correct crop sizes etc.
I have seen quite a few selection codes that do what i need but they only save the picture box selection. this means the cropped image is of the picture box.
I would like to select part of an image from a picture box and get the real co ordinates of the file.

tks
Last edited by k_zeon; Apr 19th, 2025 at 11:37 AM.
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
|