如何使用C#来调整动画GIF图像? [英] How to resize an animated gif image using C#?

查看:133
本文介绍了如何使用C#来调整动画GIF图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有用C#创建动画GIF图像的副本的方法是什么?

Is there a method to create a copy of an animated gif image using C#?

我要的是使用的高度来生成一个给定的gif图片的副本和宽度参数的用户提供。我已经试了几个小时来完成这一点,但所产生的图像不会保留原来的动画。

What I want is to generate a copy of a given gif image using the height and width parameters that the user provides. I have tried for a couple of hours to accomplish this but the resulting image does not preserve the original animations.

推荐答案

您需要通过GIF动画帧循环和调整各一台。

You need to loop through the frames in the animated GIF and resize each one.

可能也想看看的 GifLib

这篇关于如何使用C#来调整动画GIF图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆