Results 1 to 4 of 4

Thread: Save jpeg

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715

    Save jpeg

    how can I save the contents of a picture box into a jpeg
    NXSupport - Your one-stop source for computer help

  2. #2
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Use a DLL to do it. http://haztek.d2g.com/files/bmp2jpg.zip

    VB Code:
    1. Private Declare Function BmpToJpeg Lib "Bmp2Jpeg.dll" (ByVal BmpFilename As String, ByVal JpegFilename As String, ByVal _
    2. CompressQuality As Integer) As Integer
    3.  
    4. SavePicture Picture1.Picture, "C:\temp.938"
    5. BmpToJpeg "C:\temp.938", "C:\thefile.jpg", 100 '100 = quality level
    6. Kill "C:\temp.938"
    Last edited by MidgetsBro; Aug 4th, 2002 at 04:12 PM.
    <removed by admin>

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    does 100 mean that its in the same condition as the file was when it was opened
    NXSupport - Your one-stop source for computer help

  4. #4
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    I think 100 is the highest quality jpeg you can get. It will make the biggest file size, but will still compress to jpeg. It may have a little bit of loss, but probably barely noticable, if at all.
    <removed by admin>

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