.NET ImageAnimator 是否可用于 C++还有?
在codeproject上有一个扩展GDI+ Image类以支持C++下的动画gif的示例。
但是,在.Net下有ImageAnimator。在查看 ImageAnimator 时我注意到 它们支持 4 种语言,包括 C++。这是否意味着 ImageAnimator 实际上是 C++ 下也可用吗?
http://msdn。 microsoft.com/en-us/library/system.drawing.imageanimator.animate%28VS.71%29.aspx
我问的原因是,我不喜欢重新发明轮子。另外,代码项目版本依赖于 MFC,因此如果我使用它,我将不得不删除 MFC 位。我想我应该在开始之前问这个问题。
On codeproject there is an example of extending the GDI+ Image class to support animated gif under C++
However, under .Net there is ImageAnimator. While looking at ImageAnimator I noticed that
they show support under 4 languages including C++. Does that mean ImageAnimator is actually
available under C++ as well?
http://msdn.microsoft.com/en-us/library/system.drawing.imageanimator.animate%28VS.71%29.aspx
The reason I ask is, that I don't like reinventing the wheel. Also, the codeproject version is dependant on MFC so if I use that I'll have to strip out the mfc bits. Thought I'd just ask this question before I begin.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,这正是它的意思。您链接到的 MSDN 页面甚至有一个如何使用它的 C++ 示例。
Yes, that is exactly what it means. The MSDN page you linked to even has a C++ example of how to use it.
.Net 只是 GDI+ 平面 API。 GDI+ 平面 API 的 C++ 包装器位于此处 。您将获得几乎相同的对象模型,除了 .Net 有一些低级包装器中不存在的高级类。例如,要在本机代码中重写 ImageAnimator 类,您需要围绕 Image::SelectActiveFrame 或 GdipImageSelectActiveFrame 创建自己的包装器。
.Net is just another wrapper of GDI+ flat API. The C++ wrapper of GDI+ flat API is here. You get pretty much the same object model, except .Net has some higher classes that do not exist in low level wrappers. For example, to rewrite the ImageAnimator class in native code you need to create your own wrapper around Image::SelectActiveFrame or GdipImageSelectActiveFrame.