|
-
Aug 30th, 2000, 10:25 AM
#1
Thread Starter
Junior Member
Puzzle:
U have a picturebox, then BitBlt' something in it.
How do u save the picture in file?
(pleez dont tell me to use savepicture, it doesnt work cuz (i think so) bitblt'ed images are not considered 'picture' or 'image' property of control)
Thx
-The Shortest Anecdote: pkunzip.zip
-
Aug 30th, 2000, 11:23 AM
#2
PowerPoster
You need to enable AutoRedraw of your picture box. And yes, you need to use the .image method:
Code:
SavePicture Picture1.Image, "C:\test.bmp"
-
Aug 30th, 2000, 03:35 PM
#3
Thread Starter
Junior Member
No way.
Enabling AutoRedraw wont even let me to bitblitt anything in picturebox...
Any more ideas?
-The Shortest Anecdote: pkunzip.zip
-
Aug 30th, 2000, 11:00 PM
#4
PowerPoster
Sure it does... put a DoEvents after your blitting operation. AutoRedraw lets the picture box hold the picture in memory even if another windows moves over it. SavePicture needs this memory picture to store it It works
-
Aug 31st, 2000, 09:59 AM
#5
Thread Starter
Junior Member
Woops... It worked, Thx Fox =)
-The Shortest Anecdote: pkunzip.zip
-
Aug 31st, 2000, 11:53 AM
#6
Once you draw on it's DC, you can convert the image to the picture using the following statement
Code:
Picture1.Picture = Picture1.Image
'Now you can save it using SavePicture
SavePicture Picture1.Picture, "C:\MyBitmap.bmp"
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
|