[ACCEPTED]-Access GIF frames with C#-animated-gif

Accepted answer
Score: 27

Try this:

using System.Drawing;    
using System.Drawing.Imaging;

Image gifImg = Image.FromFile(pathToGifFile);
FrameDimension dimension = new FrameDimension(gifImg.FrameDimensionsList[0]);
// Number of frames
int frameCount = gifImg.GetFrameCount(dimension);
// Return an Image at a certain index
gifImg.SelectActiveFrame(dimension, index);


Score: 9

a bit of googling: editing animated gif's in c#

You can read the animated 1 Gif with Image.GetFrameCount() and SelectActiveFrame().

More Related questions