|
-
Oct 4th, 2002, 05:30 AM
#1
Thread Starter
New Member
Modifying and saving bitmaps
Hi wonder if anyone could help me? I basically want to make things I have drawn on a picture in a picture box (using pset , line, circle etc.) persistent (ie still be there after the picture is refreshed) and also be able to save the graphic I have ended up with as a bitmap. Can this be done using VB Picture boxes or do I need to delve into VC++
Thanks for any advice
Cheers
Cookie
-
Oct 4th, 2002, 07:13 AM
#2
Addicted Member
Hi Cookie,
The code below draws a simple line in picture box 'picture1'. The SavePicture routine needs a 'handle' to the picture. That is what 'image' means. If you look closely at VB, you see that forms have 'image' also. The size of the BMP depends upon the size of your picture box.
Code:
Picture1.Line (100, 100)-(1000, 1000) 'draw something
SavePicture Picture1.Image, "mybmp.bmp" 'save picture
Regards,
ChuckB
-
Oct 4th, 2002, 08:11 AM
#3
Thread Starter
New Member
Thanks Chuck that's a big help. Thought I was going to have to delve into APIs etc.
Cheers
Cookie
-
Oct 4th, 2002, 11:53 AM
#4
Frenzied Member
Chuck, ROFL at your avatar! Nice one! =).
Z.
-
Oct 4th, 2002, 01:45 PM
#5
Addicted Member
Thanks Z...by far one of my biggest accomplishments in Paintbrush to date. :-)
Regards,
ChuckB
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
|