Results 1 to 2 of 2

Thread: Saving as bmp but want to save as jpeg and also quality problems

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Saving as bmp but want to save as jpeg and also quality problems

    Hello,

    I have a simple app that I have been saving an image as a bitmap. This works ok and the bitmap looks good but if I try to convert the bitmap to a jpeg, it looks bad. The quality is terrible. Is there a way I can improve on the saved bitmap image to make it convert better and/or is there a way to save directly to a jpeg file from my app. I am currenly using this:

    Private Sub btnSave_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles btnSave.Click
    'Declare variables

    Dim bmp As Bitmap
    Dim dlg As SaveFileDialog = New SaveFileDialog()

    'Create bitmap

    bmp = Hardcopy.CreateBitmap(lblImage)

    'Format dialog box
    dlg.Title = "Save BMP file"
    dlg.InitialDirectory = "c:\"
    dlg.Filter = "bmp files (*.bmp)|*.bmp|All files (*.*)|*.*"

    'If user clicks "OK" then save file
    If dlg.ShowDialog = DialogResult.OK Then

    bmp.Save(dlg.FileName, System.Drawing.Imaging.ImageFormat.Bmp)

    End If

    'Disable Textbox
    txtInput.Enabled = False

    End Sub

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Did you try first to save the newly created image with the same size ? ofcourse the bigger the image is the more it's f_ucked up .

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