2d绘制 c# dx_如何使用C#绘制2D线图?

这篇博客讨论了在C#中如何创建2D线图,无需第三方组件。作者提供了两种UI库的选择:WPF和System.Windows.Forms,并详细比较了它们的绘图能力。WPF被推荐为更强大、易用的选项,而System.Windows.Forms则需要更多的渲染知识。此外,还提到了MS-Chart控制,这是一个.NET框架4.0的部分,可用于实现2D图表绘制。
摘要由CSDN通过智能技术生成

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值