Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/309.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
是否将带有动画元素的C#winforms面板或PictureBox保存到gif文件?_C#_Winforms_Animated Gif - Fatal编程技术网

是否将带有动画元素的C#winforms面板或PictureBox保存到gif文件?

是否将带有动画元素的C#winforms面板或PictureBox保存到gif文件?,c#,winforms,animated-gif,C#,Winforms,Animated Gif,如何将带有动画元素的C#winforms面板或PictureBox保存到gif文件? 我也试着这样做 pictureBox2.Image.Save(System.IO.Path.Combine( Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "1.gif"), System.Drawing.Imaging.ImageFormat.Gif); 但它只保存静态图像而不保存动画。看一看。他

如何将带有动画元素的C#winforms面板或PictureBox保存到gif文件? 我也试着这样做

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

但它只保存静态图像而不保存动画。

看一看。他使用的Bumpkit库是开源的,因此您可以只在解决方案中包含所需的文件。

Winforms无法创建动画.gif文件。您需要购买另一个支持它的库。试试看!这可能有助于: