Results 1 to 5 of 5

Thread: Saving a image as JPEG

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    Singapore
    Posts
    116

    Post

    Does anybody know how to save an image from a picture box as a jpeg file,GIF file or some smaller file formats instead of the bitmap files which are large in size????

  2. #2
    Member
    Join Date
    Sep 2002
    Posts
    46

    Talking try

    Private Sub Command1_Click()
    SavePicture Picture1, "c:\xxx.jpg"
    End Sub
    Private Sub Form_Load()
    Picture1.Picture = LoadPicture("c:\yyy.gif")
    End Sub

  3. #3
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Re: try

    Originally posted by vb cub
    Private Sub Command1_Click()
    SavePicture Picture1, "c:\xxx.jpg"
    End Sub
    Private Sub Form_Load()
    Picture1.Picture = LoadPicture("c:\yyy.gif")
    End Sub
    It would only change the extension and icon... but the format would remain same...i.e. bitmap...
    I wish it were that simple...
    You may need the Intel Jpeg Library... it is a dll which provides you the functions which convert BMP to JPG and vice versa..

  4. #4

  5. #5
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512
    Yes, Moinkhan, you are correct. The Intel JPEG library is what you need. If your app is for commercial use you will have to register and pay a licence fee too. Its similar to mp3
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

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