drawing a path efficiently

  • Thread starter Thread starter James dean
  • Start date Start date
J

James dean

When i draw a path with many points the editing becomes slow. I ran
devPartner and it said that the GDI+ method "GetPathPoints" was taking
up alot of processing time. Also GetPathOutline is slow. Has anybody got
advice on the most efficient way to draw paths in C#.
 
Your intentions are not very clear.

I guess that you're editing a user-drawn shape of some kind? Storing the
shape as a GraphicsPath probably isn't very efficient.

You can draw a path using Graphics.DrawPath and fill it using
Graphics.FillPath.

Perhaps you should explain a bit more.

--
Bob Powell [MVP]
Visual C#, System.Drawing

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.
 
Yeah well i have a specific problem with drawing a polyline. When there
are many points in the polyline then any editing is slow. When any
editing is done then all path points are redrawn...this is inefficient.
Whats the best way to draw a polyline with many points.
 
Back
Top