windows ce - 2d 图形库
我有 Windows CE 5.0 设备,它不支持任何硬件加速。 我正在寻找一些好的 2d 图形库来完成以下任务。 我更喜欢 Compact .Net Framework 中的后端编程。
- 使用抗锯齿功能绘制字体。
- 绘制线条和具有抗锯齿功能的简单矢量对象。
- 我不做动画,所以我不关心每秒帧数的性能。
我研究过以下图书馆,但没有一个适合我。
- opengl(vincent 3d 软件渲染)- 可以工作,但 api 级别非常低且复杂。
- openvg - 没有适用于 windows ce 的软件实现。
- Cairo - api 非常简洁,但没有 wince 构建。
- Adobe Flash - 作为浏览器插件安装,在 wince 中不支持 activex。
I have Windows CE 5.0 device and it doesn't support any hardware accelearation.
I am looking for some good 2d graphics library to do following things.
I prefer backend programming in Compact .Net Framework.
- Drawing fonts with antialiasing.
- drawing lines, and simple vector objects with antialiasing.
- I am not doing animation, so i don't care about frames per seconds performance.
i have looked into following libraries, but nothing suits me.
- opengl (vincent 3d software rendering) - works, but api is very low level and complex.
- openvg - no software implementation for windows ce.
- Cairo - api is very neat, but no wince build.
- Adobe Flash - installs as browser plugin , no activex support in wince.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
.Net CF 2.0+ 中的抗锯齿字体可以使用 Microsoft.WindowsCE.Form.LogFont 来完成 - 创建 logfont 后,您可以通过使用 System.Drawing.Font.FromLogFont 转换它来将其与任何 WinForms 小部件的 .Font 属性一起使用()。
...您可能需要在注册表中启用抗锯齿功能才能正确呈现,请参阅此 MSDN 文章以获取正确的键:
[http://msdn.microsoft.com/en-us/library/ms901096 .aspx][1]
。.Net CF 1.0 有一个不错的 GDI+ 实现,称为“XrossOne Mobile GDI+”,它不再受支持,但您可以在此处获取源代码:
http://www.isquaredsoftware.com/XrossOneGDIPlus.php< /code> -- 通过 VS2008 上的导入向导运行它,为更高版本的 CF 构建它。我喜欢这个库,因为它支持 alpha 透明度,无需硬件加速、圆角矩形和渐变支持。
Anti-aliased fonts in .Net CF 2.0+ can be done with Microsoft.WindowsCE.Form.LogFont -- after creating your logfont, you can use it with any WinForms widget's .Font property by converting it using System.Drawing.Font.FromLogFont().
...you might need to enable anti-aliasing in the registry for these to render properly, see this MSDN article for the right keys:
[http://msdn.microsoft.com/en-us/library/ms901096.aspx][1]
.There was a decent implementation of GDI+ for .Net CF 1.0 called "XrossOne Mobile GDI+", it's not longer supported, but you can get the source code here:
http://www.isquaredsoftware.com/XrossOneGDIPlus.php
-- Run it through the import wizard on VS2008 to build it for later versions of CF. I liked this library for its alpha transparency support without hardware acceleration, rounded rectangles and gradient support.有人在某个论坛上为这个图书馆做广告。它适用于 Windows Mobile,但您可以查看一下。我没有这方面的经验。
链接
Someone was advertising this library in some forum. It's for Windows Mobile, but you can check it out. I have no experience with it.
link
我在WindowsCE 下编译了Google 的skia 库,尽管我还没有用它做太多事情:) 开始工作并不太难。它确实支持 OpenGL/ES 后端。
还有 AGG(Anti Grain Geometry),它是一个基于模板的重型 C++ 库。
I have Google's skia library compiling under WindowsCE, although I haven't done much with it yet :) It wasn't too hard to get working. It does support a OpenGL/ES backend.
There is also AGG (Anti Grain Geometry) which is a heavy C++ library based on templates.