Windows Mobile 上的矢量图形
我必须制作一个可以在 Windows (XP/Vista) 和 Windows Mobile 上运行的应用程序。 图形界面必须是可扩展的(针对不同的分辨率)并且控件必须是自定义的(就像音乐应用程序中常见的控件)。 SVG 是我的即时选择,但 Windows Mobile 缺乏支持几乎耗尽了我的时间预算。 我尝试评估 WMF,它似乎是正确的答案,但我不太喜欢它。 我正在考虑 WPF/XAML,但我不知道 Windows 和 Windows Mobile 之间有什么区别。 该项目必须采用 C# 或 C++ 语言,并且是一个商业项目(因此没有 GPL 库)。 最好的选择是什么? 我忽略了什么?
I have to make an application that runs on both Windows (XP/Vista) and Windows Mobile. The graphics interface must be scalable (for different resolutions) and the controls must be custom (like the ones usually found on music apps).
SVG was my instant choice but the lack of support on Windows Mobile pretty much kill my time budget. I've tried to evaluate WMF and it seems the right answer but i don't really like it.
I was thinking about WPF/XAML but i don't know what are the differences between Windows and Windows Mobile.
The project must be in C# or C++ and it's a commercial project (thus no GPLed libraries).
What would be the best choice? What ma I overlooking?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
WinForms 对缩放的支持有限:
http://sellsbrothers.com/writing/winformsAutoScaling.htm
您可能还想查看“锚定”和“对接”:
https:// web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-6165908.html
结合在一起,您应该能够创建一个适用于桌面和移动设备的 UI 。
WinForms has limited support for scaling:
http://sellsbrothers.com/writing/winformsAutoScaling.htm
You may also want to look at "anchor" and "docking":
https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-6165908.html
Combined together you should be able to create a UI that works for both desktop and mobile.
你可以在 .NET 紧凑框架中缩放 UI,就像 Erwin 所说的对接和锚定。 在我编写的Windows移动应用程序中,我通常必须编写一些自定义代码来处理诸如字体缩放之类的事情(如果文本应该可点击,触摸发现可能需要比系统默认字体更大的字体)。
我认为您无法在没有代码的情况下正确地缩放图片,我在此网站上发现了一些相关问题。 根据我的经验,我编写了 99.9% 的代码,因此它在 Windows 和 Windows Mobile 上都运行良好,但我确实为 Windows Mobile 制作了不同的 UI。
如果通常在 .NET 2.0 / .NET 2.0 Compact Framework 中编写代码,但如果您不关心必须安装 .NET 3 那么它应该更好(.NET 2 比 .NET 3 分布更广泛)
You can do scaling UI in .NET compact framework, like Erwin said with docking and achoring. In the windows mobile applications i have written i do normaly have to write some custom code that deals with things like Font scaling ( Touch founds might need bigger Font then system default if the text should be clickable).
I dont think your going to get it to scale picture correctly without code, i found some question releated that on this site. In my experience i write 99.9% of my code so it runs fine on both windows and windows mobile, but i do make a different UI for windows mobile.
If normaly write code in .NET 2.0 / .NET 2.0 Compact Framework, but if your you dont care about having to install .NET 3 then it should be better ( .NET 2 is wider spread out then .NET 3 )
另一种选择是使用 C++ 编写的 Qt 库。 它是 LGPL,这意味着它可以用于商业产品,而无需发布源代码(对库本身的更改除外)。 如果由于某种原因这还不够好,他们还出售商业许可证。
它在 Windows 和 Windows Mobile 上运行。 作为奖励,如果您进行了合理的编程工作(并假设您正在做的其他编码工作都支持它),您的应用程序也可以在 Mac OSX、Linux 和 S60 上运行。
它支持可扩展矢量图形、具有完整小部件支持的画布以及许多其他漂亮的功能! 我建议查看文档并查看它是否包含您需要的一切。
Another option is the Qt library which is written in C++. It is LGPL which means that it can be used in commercial products without having to release your sources (except for changes to the library itself). If for some reason that isn't good enough they also sell commercial licenses.
It runs on Windows and Windows Mobile. As a bonus if you do a reasonable job of programming (and assuming everything else you're doing coding wise supports it) your application can also be run on Mac OSX, Linux and S60.
It has support for Scalable Vector Graphics, a Canvas with full widget support and a bunch of other nifty features as well! I'd suggest checking out the documentation and seeing if it has everything you need.
Silverlight?
Silverlight?