PictureBox中的动画GIF不移动 [英] Animated GIF in PictureBox Not Moving

查看:74
本文介绍了PictureBox中的动画GIF不移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部:


任何人都可以告诉我为什么我的动画GIF没有显示

作为动画放入图片框?


谢谢。

Liz

解决方案

*" Liz" < CH ********* @ earthlink.net> scripsit:

任何人都可以告诉我为什么我的动画GIF没有出现
当放入pictureBox时动画?




谁知道。请提供有关图像的更多详细信息。


也可以看看''ImageAnimator''课程。


-

Herfried K. Wagner [MVP]

< http://www.mvps.org/dotnet>


这是一个标准的动画图像。我把它放在我表格上的

图片框中。当我在

设计模式时,它很高兴地动画,但当我实际运行程序时,我得到了

混合结果。有时它会正确动画并且有时会被冻结。请注意,我一遍又一遍地执行相同的

代码而没有更改,我仍然会看到图片中的变量行为。


至于ImageAnimator类,我如何在PictureBox中加入




谢谢。

L.

-----原始消息-----
*Liz < CH ********* @ earthlink.net> scripsit:

任何人都可以告诉我为什么我的动画GIF在放入pictureBox时不显示
动画?
谁知道。请提供关于



图像的更多详细信息。
也可以查看一下''ImageAnimator''类。

-
Herfried K. Wagner [MVP]
< http://www.mvps.org/dotnet>



我刚刚使用动画GIF文件和图片框进行了简单的测试

控制。我在Form Load事件中加载了gif,如下所示:PictureBox1.Image

= Image.FromFile(" C:\ checky.gif"),它工作正常。也许,你的问题

你是从设计模式设置.Image源而不是从表单加载中设置

。尝试在代码中设置图像源,而不是在表单

设计器中设置,看看是否能解决您的问题。

james


"利兹" < CH ********* @ earthlink.net>在消息中写道

news:fc **************************** @ phx.gbl ... < blockquote class =post_quotes>这是一个标准的动画图像。我把它放在我表格上的一个
图片框中。我在
设计模式下很开心,但是当我实际运行程序时,我得到了混合的结果。有时它会正确动画,有时它会被冻结。请注意,我一遍又一遍地执行相同的代码片段而不做任何更改,我仍然可以看到图像中的变量行为。

至于ImageAnimator类,我如何将其与PictureBox合并?

谢谢。
L.

-----原始消息-----
*Liz < CH ********* @ earthlink.net> scripsit:

任何人都可以告诉我为什么我的动画GIF在放入pictureBox时不会显示为动画?



谁知道。请提供关于


图片的更多细节。


也可以看看''ImageAnimator''课程。

-
Herfried K. Wagner [MVP]
< http://www.mvps.org/dotnet>



All:

Can anyone tell me why my animated GIF does not show up
as animated when put into a pictureBox??

Thanks.
Liz

解决方案

* "Liz" <ch*********@earthlink.net> scripsit:

Can anyone tell me why my animated GIF does not show up
as animated when put into a pictureBox??



Who knows. Please provide some more details on the image.

Have a look at thge ''ImageAnimator'' class too.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


It''s a standard animated image. I''ve put it into a
picture box on my form. It happily animates while I''m in
design mode, but when I actually run the program I get
mixed results. Sometimes it animates correctly and
sometimes it''s frozen. Note that I''m executing the same
piece of code over and over without change and I still
see the variable behavior in the image.

As for the ImageAnimator class, how would I incorporate
that with a PictureBox?

Thanks.
L.

-----Original Message-----
* "Liz" <ch*********@earthlink.net> scripsit:

Can anyone tell me why my animated GIF does not show up as animated when put into a pictureBox??
Who knows. Please provide some more details on the


image.
Have a look at thge ''ImageAnimator'' class too.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
.



I just did a simple test using an animated GIF file and a picturebox
control. I loaded the gif in the Form Load event like so: PictureBox1.Image
= Image.FromFile("C:\checking.gif") and it works fine. Maybe, your problem
is you are setting the .Image source from Design Mode instead of doing it
from Form Load. Try setting the image source in code instead of in the Form
Designer and see if that fixes your problem.
james

"Liz" <ch*********@earthlink.net> wrote in message
news:fc****************************@phx.gbl...

It''s a standard animated image. I''ve put it into a
picture box on my form. It happily animates while I''m in
design mode, but when I actually run the program I get
mixed results. Sometimes it animates correctly and
sometimes it''s frozen. Note that I''m executing the same
piece of code over and over without change and I still
see the variable behavior in the image.

As for the ImageAnimator class, how would I incorporate
that with a PictureBox?

Thanks.
L.

-----Original Message-----
* "Liz" <ch*********@earthlink.net> scripsit:

Can anyone tell me why my animated GIF does not show up as animated when put into a pictureBox??



Who knows. Please provide some more details on the


image.


Have a look at thge ''ImageAnimator'' class too.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
.



这篇关于PictureBox中的动画GIF不移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆