Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
I want to draw the line containing nearly 1000000 points and also wants to do this rendering within 1 second.
Could you please suggest how i can draw high performance line in wpf.

What I have tried:

I tried PolyLine, StreamGeometry and also tried DrawingVisual, but these classes takes several seconds to draw line with just 50k points.
Posted
Updated 14-Aug-16 7:24am
Comments
Philippe Mori 15-Aug-16 19:59pm    
As you cannot see that much lines at once, one optimization is to display only lines that actually matters (start and end points are different pixels) or you might merge consecutives segments that are almost in line. Or do some kind of filtering... Or buy a chart package designed to handle very large data...

 
Share this answer
 
Comments
Maciej Los 15-Aug-16 4:42am    
5ed!
ridoy 15-Aug-16 14:12pm    
Thank you. :)
Quote:
I want to draw the line containing nearly 1000000 points and also wants to do this rendering within 1 second.

Don't do it !
Instead, draw the data 1 time, take a picture, save it on server, and just send the picture to the client.
Another way is to reduce the number of points to speedup rendering.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900