aardio:

import gdip
var bmp = gdip.bitmap( "\test.gif" );
var count = bmp.totalFrames; //获取gif动画帧数
for(i=1;count;1){
bmp.selectActiveFrame(i); //选择某一帧
bmp.save("\"+i+".jpg",100) //保存至本地
}

c#:

Image img = Image.FromFile(fileName);
FrameDimension fd = new FrameDimension(img.FrameDimensionsList[0]);
int count = img.GetFrameCount(fd);
for (int i = 0; i < count;i++ )
{
img.SelectActiveFrame(fd,i);
img.Save(i + ".jpg", ImageFormat.Png);
}