-
How do you load animated gif frames to MagickImageCollection? I would like to load them as separated images, adjust some properties or add additional frames and save them back to gif. The code below reads only the first frame from the gif.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I have found that there is MagickImageCollection.AddRange for adding animated gifs, can I use this method to add animated and non-animated images to the collection? |
Beta Was this translation helpful? Give feedback.
-
When you do this |
Beta Was this translation helpful? Give feedback.
When you do this
using (var collection = new MagickImageCollection("animated.gif"))
all the frames of the images will be added to that collection. You can then add or remove frames (images) from the collection. And withAddRange
you can add multiple frames/images to the collection, and to add a single frame/image you will need to use theAdd
method.