ASP.Net 中的图形 (c#)
我需要有关我最新的 ASP.NET 项目的帮助。它涉及到图形。我需要画一个圆,并有几条从中间到边缘(半径)的线。这是我知道该怎么做的部分。下一部分是我不知道该怎么做的部分,希望得到一些建议。用户需要能够用鼠标抓取线条并移动它们。例如,如果一条线指向 90 度标记,他们可能想要抓住它并将其移动到 45 度标记。这将影响页面其他位置显示的计算。
我会考虑第三方控件,但更喜欢带有编码或开源控件的解决方案。
提前致谢。
鲍勃·阿瓦隆
I need help with my latest asp.net project. It involves graphics. I need to draw a circle and have several lines going from the middle to the edge (radius). This is the part I know how to do. The next part is the part I don’t know how to do and would appreciate some advice. The users need the ability to grab the lines with their mouse and move them. For example if a line is pointing to the 90 degree mark, they might want to grab it and move it to the 45 degree mark. This will affect calculations that will display elsewhere on the page.
I will consider third party controls but would prefer a solution with coding or open source controls.
Thanks in advance.
Bob Avallone
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
ASP.net 在服务器上运行 - 它只是生成 HTML(和 JavaScript),然后将其发送到客户端(例如浏览器)并在那里呈现。
所以你需要的不是一个asp.net解决方案,而是一个富客户端解决方案。您的一些选择是:
我怀疑 Javascript 或 Silverlight 将是您最感兴趣的。也许您想做一些调查,然后带着更新的问题回来。
更新回复:鲍勃的评论:
快速google 发现了这个,看起来很酷:
轻量级视觉同义词库
ASP.net runs on the server - it simply generates HTML (& JavaScript) which is sent to the client (eg a browser) and rendered there.
So what you need is not an asp.net solution, but indeed a rich client solution. Some of your options are:
I suspect Javascript or Silverlight will be of the most interest to you. Perhaps you want to do a little investigation, and come back with an updated question.
UPDATE Re: Bob's Comment:
A quick google found this, which seems pretty cool:
Lightweight Visual Thesauras
您可以使用 svg 来为您完成这项工作,也许可以修改
上的工作http://www.maa.org/joma/Volume7/Lane/Developer.html
具体示例为:
http://www.maa.org/joma/Volume7/Lane/Thales.svg
You could possibly use an svg to do the work for you, maybe modifying the work on
http://www.maa.org/joma/Volume7/Lane/Developer.html
the specific example is:
http://www.maa.org/joma/Volume7/Lane/Thales.svg
如果您不需要受限于 ASP.Net,那么通过 Forms 应用程序可以更轻松地解决此问题。您可以通过网络启用它并将其作为 ClickOnce 应用程序分发,以获得相同程度的外部可维护性(如果这就是您使用 ASP.Net 的原因)。
If you don't need to be constrained to ASP.Net, this problem is much more easily solved via a Forms app. You can net-enable it and distribute it as a ClickOnce app to get the same degree of external maintainability (if that is why you are using ASP.Net).