求教:用C语言怎么实现实时曲线呢?

bytyblc 2006-10-06 12:37:44
???谢谢
...全文
314 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
OOPhaisky 2006-10-07
  • 打赏
  • 举报
回复
恩,虫子的方法不错^_^
jixingzhong 2006-10-07
  • 打赏
  • 举报
回复
比如,你可以建立一个队列,
产生的新的点都入列,

然后定时用这个队列中的点画一条曲线,
可以用 tc 中库函数
jixingzhong 2006-10-07
  • 打赏
  • 举报
回复
方法1, 定时器,可以通过高精度定时, 在一定程度上达到所谓的实时
方法2 触发, 即有新数据时候立即更新显式。

两者各有优劣 ...
chenhu_doc 2006-10-07
  • 打赏
  • 举报
回复
Line-Output Functions

GetCurrentPosition Retrieves the current position of the pen (in logical coordinates).
MoveTo Moves the current position.
LineTo Draws a line from the current position up to, but not including, a point.
Arc Draws an elliptical arc.
ArcTo Draws an elliptical arc. This function is similar to Arc, except that the current position is updated.
AngleArc Draws a line segment and an arc, and moves the current position to the ending point of the arc.
GetArcDirection Returns the current arc direction for the device context.
SetArcDirection Sets the drawing direction to be used for arc and rectangle functions.
PolyDraw Draws a set of line segments and Bézier splines. This function updates the current position.
Polyline Draws a set of line segments connecting the specified points.
PolyPolyline Draws multiple series of connected line segments. The current position is neither used nor updated by this function.
PolylineTo Draws one or more straight lines and moves the current position to the ending point of the last line.
PolyBezier Draws one or more Bézier splines. The current position is neither used nor updated.
PolyBezierTo Draws one or more Bézier splines, and moves the current position to the ending point of the last Bézier spline.


实时曲线, 需要有个檫除,然后重画的过程。
Jim_King_2000 2006-10-07
  • 打赏
  • 举报
回复
画曲线可以使用GDI,GDI+,DirectX,OpenGL。来一个数据,更新一下曲线呗。
java_player 2006-10-07
  • 打赏
  • 举报
回复
查 msdn~
chenhu_doc 2006-10-06
  • 打赏
  • 举报
回复
openGL 这个库也不错。

详细情况可用baidu搜艘。
chenhu_doc 2006-10-06
  • 打赏
  • 举报
回复
用 tc的 graphic库。

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧