Como dividir um gif animado em .net?
Como você divide um gif animado em suas partes componentes em .net?
Especificamente, eu quero carregá-los em Image (s) (System.Drawing.Image) na memória.
======================
Com base na resposta do SLaks agora eu tenho esse
public static IEnumerable<Bitmap> GetImages(Stream stream)
{
using (var gifImage = Image.FromStream(stream))
{
var dimension = new FrameDimension(gifImage.FrameDimensionsList[0]); //gets the GUID
var frameCount = gifImage.GetFrameCount(dimension); //total frames in the animation
for (var index = 0; index < frameCount; index++)
{
gifImage.SelectActiveFrame(dimension, index); //find the frame
yield return (Bitmap) gifImage.Clone(); //return a copy of it
}
}
}