简体   繁体   English

是PictureBox画线的最佳方法

[英]Is pictureBox the best way to draw a line

iam drawing trajectory of a device on real time basis sending data via serial port. 通过串行端口实时发送设备的IAM绘图轨迹。 Iam using a picturebox and bitmap image(so that trajectory is not gone when my window is not active) to plot the path. 我使用图片框和位图图像(这样,当我的窗口不处于活动状态时轨迹不会消失)来绘制路径。

The problem is that the drawing the path is using 20% of CPU (Intel Pentium 4, 3.0 GHz) and i think its too much. 问题在于,绘制路径使用的是20%的CPU(Intel Pentium 4,3.0 GHz),我认为它太多了。 Is picture box the correct way to plot the path?? 图片框是绘制路径的正确方法吗?

thanks in advance... 提前致谢...

如果您只是想画一条线,那么请看一下此http://msdn.microsoft.com/zh-cn/library/aa287522%28v=vs.71%29.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM