Filtering dynamic graphics
I am working on graphics in WPF, each section has thousands of drawing points. The performance for rendering this graph is terrible.
Does anyone have experience with a filter that will represent a graph with much fewer points - similar to how a fountain graph draws itself when zoomed out.
Thank.
0
source to share
1 answer
When you talk about graphics, I am assuming you mean like a diagram, not many nodes and edges (hence an example of stock).
So, suppose the case is, here are a couple of web pages covering algorithms for simplifying polylines:
http://www.kevlindev.com/tutorials/geometry/simplify_polyline/page2.htm
http://softsurfer.com/Archive/algorithm_0205/algorithm_0205.htm
You can create simplified polyline versions of graphic lines for different scales (on request).
+2
source to share