|
-
May 26th, 2000, 11:09 PM
#1
Thread Starter
Member
I have two very important questions.
1 - How can I load an image into my program and place it in the Control ImageStore (an Image Control)?
2 - How can I save an image from ImageStore into a file on my computer?
-Boo
Please Help Me!
-
May 26th, 2000, 11:35 PM
#2
Place an ImageControl and 2 CommandButtons on a Form.
Put this code in the Command1.
Code:
Private Sub Command1_Click()
' Loads the picture.
Image1.Picture = LoadPicture("C:\MpPicture.bmp")
End Sub
Put this code in Command2.
Code:
Private Sub Command2_Click()
' Saves the picture
SavePicture Image1.Picture, "C:\Mynewfile.bmp"
End Sub
-
May 27th, 2000, 01:01 AM
#3
I could have done that simple thing....
instead of using the file operators to read all of the bmp, then paste it into an invisible textbox, then read it, and paste it into a new bmp file....
then have a file on my computer that is not allowed to be deleted(the .bmp file I created in the process, is write protected, I cant get rid of it )
damn.... its so simple.....
-
May 27th, 2000, 01:24 AM
#4
Keep in mind, though, that the Image Control only saves in BMP format. The picture box will save in whatever format the original image was.
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
|