High performance plot control in WPF

前端 未结 2 639
余生分开走
余生分开走 2021-01-14 14:05

I am doing some work for which I need to develop a control, it should be a simple graph that shows several points and two edges.

My problem is that I need to show up

相关标签:
2条回答
  • 2021-01-14 14:19

    I ended up using InteropBitmap, it is the fatest bitmap rendering class from WPF.

    It allows you to map the image that you want to paint (in memory) and then reder it as a Image. This was perfect as i needed to plot points on the screen.

    I got great performance (almost 50Hz for 20k points), i also use PLINQ to update the points in memory.

    check this article for more details...

    0 讨论(0)
  • 2021-01-14 14:40

    Try and read about ZoomableCanvas. I believe it can solve your problem. You can render all the points as small rectangles/ellipses inside the ZoomableCanvas.

    0 讨论(0)
提交回复
热议问题