C# 2d 交互式图形库 [英] C# 2d interactive graphics library

查看:24
本文介绍了C# 2d 交互式图形库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个库(最好是 MIT/LGPL 风格,也将探索商业库)来替换我的应用程序的 System.Drawing 交互式 2d 图形.我有一个包含多种类型对象的大型 c#.net 应用程序.这些对象需要用矩形和梯形表示,用户可以在画布上移动这些矩形和梯形,并根据位置和重叠动态改变颜色,同时保持对象中的值同步.它目前正在使用内置的 GDI+ 库,但它看起来不是很吸引人,而且有点错误和缓慢,尤其是当有大量对象时.作为奖励,如果能够轻松显示地图、选择经度/纬度坐标并在其上绘图,那就太好了.有人知道可以完成所有工作的魔法图书馆吗?;)

i'm looking for a library (preferably MIT/LGPL style, will explore commercial ones as well) to replace my application's System.Drawing interactive 2d graphics. i have a large c#.net application with many types of objects. these objects need to be represented by rectangles and trapezoids that can be moved around by the user on a canvas and dynamically change colors based on location and overlaps while keeping values in the objects synchronized. it is currently working with the built in GDI+ libraries but it doesn't look very attractive and is a bit buggy and slow, especially when there is a large number of objects. as a bonus it would be nice to be able to easily display maps, select longitude/latitude coordinates, and draw on top of it. anybody know of a magic library that does it all? ;)

推荐答案

尝试 WPF.

使用 WPF,您正在编写一个 GUI 应用程序,该应用程序使用 DirectX 而不是 GDI 来显示其小部件.并且 2D 和 3D 图形都很容易获得,使您能够生成您在问题中描述的内容,以及非常先进(和闪烁/惊人/等)的 2D 和 3D 效果,只需几个 XML 标签.

With WPF, you're coding a GUI application which uses DirectX instead of GDI to display its widgets. And both 2D and 3D graphics are easily available, enabling you to produce both what you describe in your question, and quite advanced (and flashing/amazing/etc.) 2D and 3D effects with but a few XML tags.

这篇关于C# 2d 交互式图形库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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