|
-
Jun 8th, 2005, 03:02 PM
#1
Thread Starter
Hyperactive Member
-
Jun 8th, 2005, 03:31 PM
#2
Re: Photo editing in VB 6.0 (Does this exist?)
 Originally Posted by stilekid007
Hello,
I have a picture box on my form and it gets a pic and opens it in the pic box. Is there any code to put in a command button to either bring up the editing software with the picture in it or are there any editing tools in VB 6.0?
Any thoughts would be a great help!
Stilekid007 
Well, you can save the image from the picture box (Using the SavePicture statement) and then use the ShellExecute API call to load the file in the other application 
Cheers,
RyanJ
-
Jun 8th, 2005, 04:54 PM
#3
Thread Starter
Hyperactive Member
Re: Photo editing in VB 6.0 (Does this exist?)
Hello there again Sciguyryan,
Thank you for the info and the links.
I will have to set my program up as you mentioned above, unless there is some way to edit it right inside of VB. I really wanted to just have the editing tools open in my program instead of leaving the program.
So just to double check, there isn't anyway to edit a picture inside of VB that anyone knows?
Thank you again man! 
Stilekid007
-
Jun 8th, 2005, 05:06 PM
#4
Re: Photo editing in VB 6.0 (Does this exist?)
 Originally Posted by stilekid007
Hello there again Sciguyryan,
Thank you for the info and the links.
I will have to set my program up as you mentioned above, unless there is some way to edit it right inside of VB. I really wanted to just have the editing tools open in my program instead of leaving the program.
So just to double check, there isn't anyway to edit a picture inside of VB that anyone knows?
Thank you again man! 
Stilekid007 
Well, it dpends on what type of editing you are looking to do, can you be a bit more specific?
Cheers,
RyanJ
-
Jun 8th, 2005, 05:09 PM
#5
Thread Starter
Hyperactive Member
Re: Photo editing in VB 6.0 (Does this exist?)
Sure, sorry about that.
Manely what I would want to be able to edit is croping (By being able to trim the edges etc) And maybe draw lines - (Not as important) So just cutting part of the pic off.
Thank you!
Stilekid007
-
Jun 8th, 2005, 05:13 PM
#6
Re: Photo editing in VB 6.0 (Does this exist?)
Have a look at this. That has some useful links, too many to post here but one of them should help you 
Cheers,
RyanJ
-
Jun 8th, 2005, 05:53 PM
#7
Thread Starter
Hyperactive Member
Re: Photo editing in VB 6.0 (Does this exist?)
Hmmm - None of those programs had the cropping/trim feature.. Maybe trimming can't be done with Vb 6.0?
I am sure it can - lol it has too!
Well thank you for your help. I really appreciate it! ;thumb:
Stilekid007
-
Jun 8th, 2005, 06:59 PM
#8
Re: Photo editing in VB 6.0 (Does this exist?)
You can easily crop an image by simply changing the size of the picture box so you can't see the whole image and then use code simular to this:
VB Code:
SavePicture Picture1.Image, "c:\MyCropedImage.bmp"
It will always save that in the BMP format though.
This will however only able you to crop the right and bottom parts of the image and save the upper left part. To be able to save any part of the picture all you have to do is to either use PaintPicture or BitBlt the part you want to another picture box and then save that.
-
Jun 8th, 2005, 10:12 PM
#9
Thread Starter
Hyperactive Member
Re: Photo editing in VB 6.0 (Does this exist?)
Thank you for that help!
That works "ok" Now if I could just get it to edit all 4 edges
But thank you - Every peice of information helps 
Stilekid007
-
Jun 9th, 2005, 07:48 AM
#10
Re: Photo editing in VB 6.0 (Does this exist?)
 Originally Posted by stilekid007
That works "ok" Now if I could just get it to edit all 4 edges 
Well, I actually told you how to do that. Using either BitBlt or PaintPicture you can "select" any rectangular part of an image and paint it on another picture box and save that.
-
Jun 9th, 2005, 07:44 PM
#11
Thread Starter
Hyperactive Member
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
|