简体   繁体   中英

saving C# winforms Panel or PictureBox with animated elements to gif file?

How to save C# winforms Panel or PictureBox with animated elements to gif file? I also tried to do it like this

pictureBox2.Image.Save(System.IO.Path.Combine(
    Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "1.gif"),
    System.Drawing.Imaging.ImageFormat.Gif);

but it save just static image without animation.

Take a look at this . The Bumpkit library he uses is open source, so you can just include the file you need in your solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM