This project has moved and is read-only. For the latest updates, please go here.

Gif animated

Sep 14, 2015 at 11:07 AM
I have one animated gif and i want to add one image to it.
I want that final image is animated with all transition (transition from first image + transition for last image).
Is possibile without create a new image from all set of animated image?
Sep 14, 2015 at 1:14 PM
If you read an animated gif with the MagickImageCollection class you will get all the frames in the collection. You can then add your image and write the result.
Sep 14, 2015 at 1:46 PM
I read documentation.
I need to read image with this code?

(MagickImageCollection collection = new MagickImageCollection("Snakeware.gif")

Sep 14, 2015 at 4:15 PM
Yes that is correct.
Sep 14, 2015 at 4:29 PM
I create an animated gif.
When create gif don't loop. There is a particular option?
Sep 14, 2015 at 8:43 PM
If you want your gif to loop you should set the AnimationIterations to zero.
Sep 14, 2015 at 9:40 PM
Ok. I have a MagickImageCollection object and I use add(stringname) to add image.
Where I add AnimationIterations?
Sep 14, 2015 at 10:03 PM
You can do that by getting the images from the collection. For example: collection[0].AnimationIterations=0 (This sets the AnimationIterations of the first image in the collection).