High performance plot control in WPF

前端 未结 2 642
余生分开走
余生分开走 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...

提交回复
热议问题