Re: Graphics drawstring doesn't affect PictureBox bitmap image
From: Bob Powell [MVP] (bob_at__spamkiller_bobpowell.net)
Date: 10/26/04
- Next message: Chris: "Need Printing Help"
- Previous message: Christopher Secules: "Graphics drawstring doesn't affect PictureBox bitmap image"
- In reply to: Christopher Secules: "Graphics drawstring doesn't affect PictureBox bitmap image"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 27 Oct 2004 00:49:36 +0200
You have to draw on the bitmap itself. The GDI+ FAQ article "Drawing on an
existing image" explains.
-- Bob Powell [MVP] Visual C#, System.Drawing Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/gdiplus_faq.htm The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml "Christopher Secules" <secules@pica.army.mil> wrote in message news:e%23SJS64uEHA.3152@TK2MSFTNGP14.phx.gbl... > I have a Picturebox that continuously gets updated with either different > patterns and/or strings of text written on it. I have the text updating in > the PictureBox's Paint event. Then I use e.Graphics.DrawString(...) to draw > the string on the screen. > > I noticed, however, that after the paint event is handled, the newly drawn > string is not saved as part of the bitmap. Is there any way to save the > entire contents of the picturebox (bitmap + graphics stuff), so that the > string will be included as part of the bitmap? > > I've looked at graphics.save, but that only saves the state of the graphics > object, not the bitmap. I've looked at bitmap and picturebox methods to no > avail. Any help would be greatly appreciated! > > Thanks, > Chris > >
- Next message: Chris: "Need Printing Help"
- Previous message: Christopher Secules: "Graphics drawstring doesn't affect PictureBox bitmap image"
- In reply to: Christopher Secules: "Graphics drawstring doesn't affect PictureBox bitmap image"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|