在Windows应用程序中绘制图形 [英] Drawing a graph in Windows application

查看:83
本文介绍了在Windows应用程序中绘制图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Windows应用程序中使用C#绘制图形.
图形的输入是日期和时间.
请.......非常紧急,

I need to draw a graph in a Windows application using C#.
Input of the graph are date and time.
please.......very urgent,

推荐答案

"Gimme代码"问题在这里不受欢迎.
此外,为了绘制图形(假设是二维图形),您需要一个点序列({x,y}坐标对),我在日期和时间"中看不到合适的对. > :)
''Gimme code'' questions aren''t welcome here.
Moreover, in order to draw a graph (assuming a bidimensional one) you need a sequence of points ({x,y} coordinate pairs), I can''t see suitable pairs in ''date and time''.
:)


在这里尝试: C#图表 [

您好,您有一些选择:
1次使用GDI或GDI +在形状,线条,点等上绘制图形(可以,但对于非常简单的情况),以获得更高的性能,您可以基于GDI进行具有所需属性的自定义控件.
2-最简单的方法是使用准备好的控件(即C#图表或任何免费控件)
3-专业的课程当然是OpenGl(使用Tao框架),您可以直接在表单中使用它,也可以根据将来的需求进行自定义控件
Hi, you have some choices:
1-use GDI or GDI+ to draw a graph base on shapes, lines, points and etc (it''s ok but for very simple situations) for more performance you can make a custom control with your desired properties based on GDI.
2-the most simple way is to use a prepared control (i.e C# Charts or any free controls)
3-the professional way of course is OpenGl (use Tao Framework) you can use it directly in forms or make a custom control for future needs


这篇关于在Windows应用程序中绘制图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆