|
-
Feb 18th, 2001, 10:59 AM
#1
Thread Starter
Junior Member
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
-
Feb 19th, 2001, 10:45 AM
#2
Retired VBF Adm1nistrator
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]
-
Feb 20th, 2001, 05:55 AM
#3
Thread Starter
Junior Member
hey thanks friend but could someone please show me how to save the bitmap to any disc under any name please..
-
Feb 20th, 2001, 07:37 AM
#4
Retired VBF Adm1nistrator
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]
-
Feb 20th, 2001, 05:03 PM
#5
Good Ol' Platypus
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)
-
Feb 21st, 2001, 02:53 AM
#6
Retired VBF Adm1nistrator
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|