开发者

Is the .NET ImageAnimator available for C++ as well?

开发者 https://www.devze.com 2022-12-15 01:13 出处:网络
On 开发者_运维问答codeproject there is an example of extending the GDI+ Image class to support animated gif under C++

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.


Yes, that is exactly what it means. The MSDN page you linked to even has a C++ example of how to use it.


.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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号