C# GDI+
-
All, I would like to know how to increase the speed of the GDI object for drawing purpose. I need to draw lines connecting 100000 points. I am using graphics.drawline. But it takes approx 5 seconds to finish the task. How can I reduce the drawing time. CodeBala
-
All, I would like to know how to increase the speed of the GDI object for drawing purpose. I need to draw lines connecting 100000 points. I am using graphics.drawline. But it takes approx 5 seconds to finish the task. How can I reduce the drawing time. CodeBala
You should see some improvement if you call DrawLines instead of DrawLine. Josh
-
All, I would like to know how to increase the speed of the GDI object for drawing purpose. I need to draw lines connecting 100000 points. I am using graphics.drawline. But it takes approx 5 seconds to finish the task. How can I reduce the drawing time. CodeBala
You could try setting the
Graphics.SmoothingMode
property toHighSpeed
before you draw the lines, like this...e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighSpeed;
Hope that helps :)
“Accept that some days you are the pigeon, and some days you are the statue” -- David Brent Cheers, Will H
-
You could try setting the
Graphics.SmoothingMode
property toHighSpeed
before you draw the lines, like this...e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighSpeed;
Hope that helps :)
“Accept that some days you are the pigeon, and some days you are the statue” -- David Brent Cheers, Will H
-
You should see some improvement if you call DrawLines instead of DrawLine. Josh
-
You should see some improvement if you call DrawLines instead of DrawLine. Josh