Gif图像 [英] Gif image
问题描述
我将使用visual studio 2017我的图片框现在将播放一个gif图像。它将只显示图片
i will use visual studio 2017 my picture box will now play a gif image .it will simple show the picture only
我的代码
PictureBox5.Image = Image.FromFile(文件路径)
PictureBox5.Image = Image.FromFile(File path)
推荐答案
我将使用visual studio 2017我的图片框现在将播放一个gif图像。它将只显示图片
i will use visual studio 2017 my picture box will now play a gif image .it will simple show the picture only
这里有一个如何在图片框中设置GIF图像动画的示例:
https://stackoverflow.com/questions/13485477/can-a-picturebox-show-animated-gif-in-windows-application
There is an example here of how to animate a GIF image in a picture box:
https://stackoverflow.com/questions/13485477/can-a-picturebox-show-animated-gif-in-windows-application
替代方案是使用可以制作动画GIF的不同控件。
The alternatives is to use a different control that can do animated GIF.
这篇关于Gif图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!