|
-
May 7th, 2001, 02:24 AM
#1
Thread Starter
Junior Member
a simple question
If I have a image in a picture box NOT loaded with Picture1.picture = Loadpicture("C:\Directory\Filename.bmp") I loaded the picture from the propierties of the picture box how can i save the image to a disk with other name?
Here my code :
Private sub Command1_Click
Picture1.Picture = Picture1.Image
SavePicture Picture1.Image, "C.\Windows\Escritorio\PRUEBA.bmp"
End sub
But when I click the Command Button I got the message
"Path not found"
How can I do that??
Thanks
Wolverine
-
May 7th, 2001, 02:29 AM
#2
Try another directory when saving.
I believe that it cannot save to a directory that doesn't exist.
-
May 7th, 2001, 10:36 AM
#3
I don't know if you already noticed it but you typed:
C.\
Guess what this should be, C:\ maybe?
-
May 7th, 2001, 03:39 PM
#4
Good Ol' Platypus
Use:
[code]
Private Sub Command1_Click()
Picture1.Picture = Picture1.Image
MkDir "C:\Windows\Escritorio\PRUEBA.bmp"
SavePicture Picture1.Image, "C:\Windows\Escritorio\PRUEBA.bmp"
End Sub
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
May 7th, 2001, 03:39 PM
#5
Good Ol' Platypus
Use:
Code:
Private Sub Command1_Click()
Picture1.Picture = Picture1.Image
MkDir "C:\Windows\Escritorio\PRUEBA.bmp"
SavePicture Picture1.Image, "C:\Windows\Escritorio\PRUEBA.bmp"
End Sub
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|