I'm looking for a .NET C# gif animation library (doesn't have to be free) that will allow me to take a gif file and attach it a frame of jpeg or even another gif file. i will also need to be able to add changing delay between the frames. The answer to similar questions here usually reference to a basic library that only allows you to add a fixed delay between static images.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
I ended up modifying http://www.codeproject.com/KB/GDI-plus/NGif.aspx code to get what I needed and it worked! :)
for the gif source file handling I added this method:
and as for the custom delays I've modified this method:
to sum it up - this code can add a gif as a frame by splitting it to frames and adding them, and it can also add custom delays.