Represents a frame of a GIF image.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public sealed class GifFrame : Frame
The following code reads a GIF image and saves its frames as separate PNG files:
using (var reader = new GifReader(@"Images\slideshow.gif")) { for (int i = 0; i < reader.Frames.Count; i++) { reader.Frames[i].GetBitmap().Save(@"Images\Output\GIF_frame_" + i.ToString() + ".png"); } }