PDA

Click to See Complete Forum and Search --> : please show me how to save a jpeg/bmp to disc after making changes in it


pranavdesai
Feb 18th, 2001, 09:59 AM
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

plenderj
Feb 19th, 2001, 09:45 AM
Well this is how you save a bitmap ...


SavePicture Picture1.Image, "c:\testing.bmp"


Hope that helps.
- jamie

pranavdesai
Feb 20th, 2001, 04:55 AM
hey thanks friend but could someone please show me how to save the bitmap to any disc under any name please..

plenderj
Feb 20th, 2001, 06:37 AM
Try something like this :


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

Sastraxi
Feb 20th, 2001, 04:03 PM
If you are making a Paint Program may I suggest: GetBitmapBits, SetBitmapBits, GetObject, SetPixelV, GetPixel, (API CALLS), or Directdraw.

plenderj
Feb 21st, 2001, 01:53 AM
mmmm rippable code mmmmm :)