Re: Clear
- From: "Bob Powell [MVP]" <bob@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 10 Aug 2005 19:44:43 +0200
pictureBox1.Invalidate()
If you're using a picture box as a canvas for drawing on then you probably
shouldn't. Use a panel as a placeholder and draw in response to the panel's
Paint event.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"VJ" <vijaybalki@xxxxxxxxx> wrote in message
news:eZIwPScnFHA.3304@xxxxxxxxxxxxxxxxxxxxxxx
> How do I clear a graphics region & repaint a new drawing. The region is a
> image in a Picturebox control.
>
> Graphics g = Graphics.FromImage(pctImage.Image);
>
> 'Clear current graphics...
> How to ???
> 'Draw new graphics...
>
> Thanks
> VJ
>
.
- References:
- Clear
- From: VJ
- Clear
- Prev by Date: Memory Leak when set a control's image property in InitializeCompo
- Next by Date: Re: Memory Leak when set a control's image property in InitializeCompo
- Previous by thread: Clear
- Next by thread: Memory Leak when set a control's image property in InitializeCompo
- Index(es):
Relevant Pages
|
Loading