标签:
private void GetFrames(string pPath, string pSavedPath) { DrawImage.Image gif = DrawImage.Image.FromFile(pPath); Imaging.FrameDimension fd = new Imaging.FrameDimension(gif.FrameDimensionsList[0]); int count = gif.GetFrameCount(fd); for (int i = 0; i < count; i++) { gif.SelectActiveFrame(fd, i); gif.Save(pSavedPath + "\\frame_" + i + ".jpg", ImageFormat.Jpeg); } }
标签:
原文地址:http://www.cnblogs.com/bo10296/p/4218538.html