见过不少人、经过不少事、也吃过不少苦,感悟世事无常、人心多变,靠着回忆将往事串珠成链,聊聊感情、谈谈发展,我慢慢写、你一点一点看......
将一个GIF动态图分割成一帧一帧的图片
string savePath = Application.StartupPath + "\\images\\";
Directory.CreateDirectory(savePath);
Image img = Image.FromFile("aa.gif")//FrameDimension frameDim = new FrameDimension(img.FrameDimensionsList[0]);
int frame = img.GetFrameCount(FrameDimension.Time);while (frame-- > 0){
img.SelectActiveFrame(FrameDimension.Time, frame);img.Save(savePath + "frame_" + frame + ".jpg", ImageFormat.Jpeg);}if (MessageBox.Show("GIF分割完成,是否打开文件夹?", "提示", MessageBoxButtons.YesNo) == DialogResult.Yes){
Process.Start(savePath);}
关注我,不失联。有啥问题请留言。
感情恋爱合集https://blog.csdn.net/forever8341/category_12863789.html
职业发展故事https://blog.csdn.net/forever8341/category_12863790.html
常用代码片段https://blog.csdn.net/forever8341/category_12863793.html
程序开发教程https://blog.csdn.net/forever8341/category_12863792.html
自我备考经验 https://blog.csdn.net/forever8341/category_12863791.html
高阶高效代码https://blog.csdn.net/forever8341/category_12873345.html
金融语言解析https://blog.csdn.net/forever8341/category_12877262.html