[ACCEPTED]-Access GIF frames with C#-animated-gif
Accepted answer
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);
0
a bit of googling: editing animated gif's in c#
You can read the animated 1 Gif with Image.GetFrameCount() and SelectActiveFrame().
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.