如何创建一个动画GIF在.NET [英] how to create an animated gif in .net
问题描述
有谁知道如何创建一个使用C#GIF动画? 理想情况下我会在使用的色彩还原一定的控制。
Does anyone know how to create an animated gif using c#? Ideally I would have some control over the color reduction used.
时使用ImageMagick(作为外部启动的进程)是最好的选择?
Is using imagemagick (as an external started process) the best choice?
谢谢!
推荐答案
不管是不是调用的ImageMagick是最好的选择是一种难以awnser不知道质量参数是非常重要的。一些其他的选项是:
Whether or not calling imagemagick is the best choice is kind of hard to awnser without knowing the quality parameters that are important. Some other options would be:
- <打击> 里克·范登博世code 行使> <一个href="https://web.archive.org/web/20130829051106/http://bloggingabout.net/blogs/rick/archive/2005/05/10/3830.aspx"相对=nofollow> archive.org镜 在codePLEX
- NGif 文章
Rick van den Bosch's codearchive.org mirror- NGif article on codeplex
这些有没有在第三部分库的依赖性的优势可能会或可能不会提供有关执行您的code的所有系统。
these have the advantage that you don't have a dependency on a third partly library which might or might not be available on all systems executing your code.
这文章在MS支持解释了如何保存为GIF与自定义颜色表(此确实需要完全信任)。一个gif动画是只是一组GIF图像的每个图像的标题一些额外的信息。因此,结合这两个条款应该得到你所需要的。
This article at MS Support explains how to save a gif with a custom color table (this does require full trust). A animated gif is just a set of gifs for each image with some additional information in the header. So combining these two articles should get you what you need.
这篇关于如何创建一个动画GIF在.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!