什么是模拟雷达在C#中的最佳方法是什么?

什么是模拟雷达在C#中的最佳方法是什么?

问题描述:

我在形式与雷达设置为背景图片的图片内的组框图片框。我的本意是在运行时动态加载雷达区域(覆盖)范围内的小JPEG图像,但我不能确定实现这一目标的最佳途径。 所有疯狂的想法表示欢迎(但我想preFER理智容易做到的)。 谢谢大家。

I have a Picture box inside a Groupbox in my form with the Picture of a radar set as the background picture. My intention is to dynamically load tiny Jpeg images within the radar area (overlaid) at runtime but I am unsure as to the best way to achieve this. All crazy ideas welcomed (but I would prefer sane easy to do ones). Thank you all.

这在很大程度上取决于你的雷达需要的样子,但几乎可以肯定,你需要实现Paint事件处理程序,并绘制内容雷达显示自己。图片框只会让你至今(不太)。

It depends a lot on what your "radar" needs to look like, but almost certainly you'll need to implement the Paint event handler, and draw the contents of the radar display yourself. A picture box will only get you so far ("not very").

GDI +是非常容易使用画圆,线条,文字和图像,并会给你完全控制你的显示器的外观。

GDI+ is very easy to use to draw circles, lines, text, and images, and will give you complete control over how your display looks.