how to draw sth on a Panel permanently?
Hi all
I need to draw sth to a Panel in an action, for instance
Graphics g = palCanvas.getGraphics();
g.setColor(Color.cyan);
g.fillPolygon(p);
Yes, the polygon is drawn, but after I update any control in the same form
or resize the window, the polygon disappears.
Can someone tell me how can I keep it?
Thanks!
--
Best Regards!
Hong.
---------------------------
Image Processing and Watermark components for .NET
http://www.ImageComponent.NET
Personal Entertainment Shareware and Freeware
http://www.angGoGo.com
.
Relevant Pages
- Re: About drawing something on a Control.
... Then there will be a line drawn on Panel? ... The event arguments contains a reference to the graphics object that should be used for drawing, just as in the code that you posted. ... To trigger the Paint event, you call the Invalidate method on the control. ... (microsoft.public.dotnet.framework) - Re: PS3 GPU is outdated
... In fact when the PS2 was announced with its 66 million ... This time though the PS3 uses PC graphics technology and can only be ... what exactly do you think a "polygon" ... I mean, most computer hardware is ... (comp.sys.ibm.pc.hardware.video) - Re: Age of Conan: Hyborian Adventures breaks all the current storage-requirement records for PC
... kept the polygon count low elsewhere. ... games like CoX which are several years old, ... That world is deadly, bloody, menacing, and cartoony graphics ... (comp.sys.ibm.pc.games.rpg) - Re: PS3 development: Repost from ugvh
... as moving images in their own right. ... I've been disappointed with 3D games up to now. ... always thought the PS and N64 were a huge let-down in the graphics department, ... I can't see large increases in polygon density having that huge an impact on the graphical quality - after all, most polygons are smaller than a pixel most of the time now. ... (uk.games.video.misc) - Re: Problems with Polyline
... If a polygon is drawn above this line, ... but the portion below the line is invisible. ... but it isn't as "simple" as reversing the vertices. ... (microsoft.public.vc.language) |
|