|
-
Jan 5th, 2002, 01:30 AM
#1
Thread Starter
Lively Member
fonts as bitmaps in picturebox
how do I convert the text printed in a picturebox to a bitmap. I have a blank picture in a picturebox. I print some text in the picturebox using print method (picture1.print). When I copy the picure to another picturebox using paintpicture methord, only the picture is copied and not the text. COuld someone please explain how to do it. thanks
-
Jan 5th, 2002, 01:15 PM
#2
Fanatic Member
When you call PaintPicture make sure you supply the source pictureboxes Image property rather than the Picture property. The Picture property simply stores whatever File you requested loaded into the Picturebox and the Image property includes everything that has been added to the PictureBox..
VB Code:
Picture2.PaintPicture Picture1.Image, 0, 0
{Insert random techno-babble here}
{Insert quote from some long gone mofo here}
-
Jan 6th, 2002, 11:36 PM
#3
Thread Starter
Lively Member
not working
I have tried what you said, but still its not working. The result is the same.
this is the code I wrote:
Picture2.PaintPicture Picture1.Image, 0, 0, Picture1.Width, Picture1.Height, 0, 0, Picture1.Width, Picture1.Height
thanks
-
Jan 7th, 2002, 03:35 PM
#4
Make sure the AutoRedraw property of Picture1 is set to True.
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
|