Results 1 to 6 of 6

Thread: please show me how to save a jpeg/bmp to disc after making changes in it

  1. #1

    Thread Starter
    Junior Member pranavdesai's Avatar
    Join Date
    Feb 2001
    Location
    india
    Posts
    24

    Unhappy

    hey guys would you please let me know how to save a jpeg or bmp to the disk after we have opened it in vb to make some changes in it from the picture box
    pmd

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well this is how you save a bitmap ...

    Code:
    SavePicture Picture1.Image, "c:\testing.bmp"
    Hope that helps.
    - jamie
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Junior Member pranavdesai's Avatar
    Join Date
    Feb 2001
    Location
    india
    Posts
    24

    Exclamation

    hey thanks friend but could someone please show me how to save the bitmap to any disc under any name please..
    pmd

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Try something like this :

    Code:
    Private Sub Command1_Click()
        Dim var_string As String
        var_string = InputBox("Please enter the full path and filename where you would like to save the picture" & vbCrLf & "Eg: c:\testing\something.bmp", "Important Notice")
        If (var_string <> "") Then
            SavePicture Picture1.Image, var_string
        End If
    End Sub
    If you wanted it all done graphically, use a DriveListBox and what not ...

    - jamie
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    If you are making a Paint Program may I suggest: GetBitmapBits, SetBitmapBits, GetObject, SetPixelV, GetPixel, (API CALLS), or Directdraw.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    mmmm rippable code mmmmm
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

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