Results 1 to 3 of 3

Thread: Exporting a jpeg from a form ???

  1. #1

    Thread Starter
    Hyperactive Member scuzymoto's Avatar
    Join Date
    Aug 1999
    Location
    Washington State
    Posts
    316
    I have an image captured in a picturebox. I have been using the saveimage function to export it to a file. However the files sizes are getting way to big for what I need them for. Is there a way to export an image contained in a picture box or any other control for that matter as a jpeg?
    SCUZ

  2. #2
    Guest
    you could save the jpeg to the directory where your program is,
    then load it into the other control, then delete it

    Code:
    Private Sub Command1_Click()
    SavePicture Picture1.Picture, "C:\windows\desktop\hello.jpg"
    Picture2.Picture = Picture1.Picture
    Picture1.Picture = Nothing
    Kill "C:\windows\desktop\hello.jpg"
    End Sub

    of course, there was already a picture loaded in picture1

    I hope this helps.

  3. #3
    Guest
    alright...!!!!
    John fixed the [ code ] coloring...

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