Results 1 to 3 of 3

Thread: Saving as bmp, jpg, gif quality issues

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Saving as bmp, jpg, gif quality issues

    Hello,

    I am saving an image from a label....not a picture box. The bitmap of the image looks fine but when I try to save it as a jpg or gif, the image quality goes down. Is this a problem with the orignal bitmap or it the way the jpg and gif are saved? The original bitmap is only 45K.

    This is how they are saved:

    If saveFile.FileName.EndsWith("bmp") Then
    image.Save(saveFile.FileName, ImageFormat.Bmp)
    ElseIf saveFile.FileName.EndsWith("gif") Then
    image.Save(saveFile.FileName, ImageFormat.Gif)
    ElseIf saveFile.FileName.EndsWith("jpg") Then
    image.Save(saveFile.FileName, ImageFormat.Jpeg)
    End If

    This is the difference in quality:

    Bitmap


    Jpeg


    Gif

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Try to save it with different method (using codec compression) . Try this example .
    Attached Files Attached Files

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Thanks!

    Thanks! I had seen that example before and dismissed it, but after reviewing it again, I think I have gotten it to work for the jpeg's. Do you have an idea what is going on with the gif's? See examples below:

    Bitmap


    Jpeg


    Gif

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