开发者

Creating Gif with Image Transitions using c#, ASP.net

I have a requirement where I have many images a开发者_StackOverflow社区nd need to create a slide show with various image transitions and I should be able to save it as a gif file along with image transitions.

I am able to create various transitions between the images in C# but not yet found out how to save it as a gif. There is a component NGif which allows to create a gif with multiple images. I tried to save the image at every trasition and then create a gif of all these images but it does not show the transtion effect but shows only the image to be shown next at different transition level with black backgroud.

Is there a way to create a gif with transition effects between the images?


I would aim for a library that creates animated GIF. It either has to be .NET or COM based to easily use. Perhaps something like this project at CodeProject.


GIF doesn't support transparency with an alpha channel. The only transparency supported is full transparency (not an opacity level like with an alpha channel). You need to designate a palette entry as the transparent color, and then use that palette entry where you want transparency (GIF is always saved with a palette).

In animated GIF, the next image is overlaid on the previous one, so transparent areas show the previous image.

Alternatively, you could just render the entire new image and not rely on transparency.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜