什么是模拟雷达在C#中的最佳方法是什么? [英] What would be the best way to simulate Radar in C#?

查看:324
本文介绍了什么是模拟雷达在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.

这篇关于什么是模拟雷达在C#中的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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