-
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
-
Well this is how you save a bitmap ...
Code:
SavePicture Picture1.Image, "c:\testing.bmp"
Hope that helps.
- jamie
-
hey thanks friend but could someone please show me how to save the bitmap to any disc under any name please..
-
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
-
If you are making a Paint Program may I suggest: GetBitmapBits, SetBitmapBits, GetObject, SetPixelV, GetPixel, (API CALLS), or Directdraw.
-
mmmm rippable code mmmmm :)