This project has moved. For the latest updates, please go here.

Gif animated

Sep 14, 2015 at 10:07 AM
Hi,
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?
Thanks
Coordinator
Sep 14, 2015 at 12: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 12:46 PM
I read documentation.
I need to read image with this code?

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

Thanks
Coordinator
Sep 14, 2015 at 3:15 PM
Yes that is correct.
Sep 14, 2015 at 3:29 PM
I create an animated gif.
When create gif don't loop. There is a particular option?
Thanks.
Coordinator
Sep 14, 2015 at 7:43 PM
If you want your gif to loop you should set the AnimationIterations to zero.
Sep 14, 2015 at 8:40 PM
Ok. I have a MagickImageCollection object and I use add(stringname) to add image.
Where I add AnimationIterations?
Thanks.
Coordinator
Sep 14, 2015 at 9: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).