Hi All,
I am new to C#.Net. I am trying to create a 2D line plot without the use of third party components.
Is there any option in C# to draw the graph and line plot using only .NET controls?
Thanks in advance,
Arun M
解决方案It depends on what UI library you want to use: System.Windows.Forms or WPF.
WPF is much more powerful and easier to use (when it comes to plotting, I don't say in general). There are many approaches. I thing you need to use canvas and put graphical objects on it. In this case, you don't have to care about rendering of graphics, you only support properties of your objects. Quality and performance are very good as it all based on ActiveX, all graphics is anti-aliased, with full support of transparency (alpha channel). You can automatically scale you graphic, fit it with preserved aspect ratio or otherwise, perform affine transfor