Results 1 to 11 of 11

Thread: Photo editing in VB 6.0 (Does this exist?) {RESOLVED}

  1. #1

    Thread Starter
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    Resolved Photo editing in VB 6.0 (Does this exist?) {RESOLVED}

    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
    Last edited by stilekid007; Jun 9th, 2005 at 07:48 PM.

  2. #2
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: Photo editing in VB 6.0 (Does this exist?)

    Quote 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
    My Blog.

    Ryan Jones.

  3. #3

    Thread Starter
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    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

  4. #4
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: Photo editing in VB 6.0 (Does this exist?)

    Quote 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
    My Blog.

    Ryan Jones.

  5. #5

    Thread Starter
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    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

  6. #6
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    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
    My Blog.

    Ryan Jones.

  7. #7

    Thread Starter
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    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

  8. #8
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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:
    1. 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.

  9. #9

    Thread Starter
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    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

  10. #10
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Photo editing in VB 6.0 (Does this exist?)

    Quote 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.

  11. #11

    Thread Starter
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    Re: Photo editing in VB 6.0 (Does this exist?)

    Hello, I found this program out there in the VB world and used it. What it does is allow you to select any portion of a picture in a pic box to crop.

    It works really nice.

    So thank you everyone who has helped!
    Stilekid007
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width