动画GIF的问题 [英] Problem with Animated GIFs

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

问题描述

我觉得在我的部分

表格上显示一些动画GIF会很不错。我在一个表单上放了一个PictureBox控件,然后加载了我的GIF文件。它

动画,但不正确。它看起来非常生涩,并且停留在某些框架上比它应该更长的时间。为了解决这个问题,我发现有几个人已经说过动画GIF根本不能在PictureBox中工作,

你必须使用ImageAnimator 。我认为他们必须指的是旧版本的旧版本,因为我确实得到了一些动画,但这不太对劲。我使用VB2005 Express


我认为在IDE下运行可能会出现问题,但我仍然得到同样的问题

如果我构建项目并运行发布exe。

我在帮助中查找了ImageAnimator,它不是特别有帮助,但

有一些示例代码。我尝试了这个,我得到完全相同的

问题。图像显示和动画,但时间似乎都错了。如果

我使用Windows XP中的图像预览,图像显示正常,所以我不会认为这是GIF文件本身的问题。 />
任何建议,非常感谢。

TIA

Phil。

解决方案

< blockquote> Phil,


你确定你正确设置了图片框的属性


通过实例这个让它看起来在每个屏幕上不同

http://msdn2.microsoft.com/en-us/lib....sizemode.aspx


Cor


" Phil" < N / Aschreef在bericht新闻:13 ************* @ corp.supernews.com ...


>我觉得在我的一些
表单上显示一些动画GIF会很不错。我在一个表单上放了一个PictureBox控件,并加载了我的GIF文件。它动画,但不正确。看起来非常生涩,并且比一些框架还要长。为了解决这个问题,我发现有几个人表示动画GIF不能在PictureBox中工作,而且你必须使用ImageAnimator。我认为他们必须将旧版本称为
,因为我确实得到了一些动画,它只是不太正确。我正在使用VB2005 Express。

我认为在IDE下运行可能会出现问题,但是如果我构建项目并运行它,我仍然会遇到同样的问题发布exe。

我在帮助中查找了ImageAnimator,它不是特别有帮助,

但是有一些示例代码。我尝试了这个,我得到完全相同的

问题。图像显示和动画,但时间似乎都错了。

如果我在Windows XP中使用图像预览图像显示正常,所以我不认为
这是GIF文件本身的问题。

任何建议,非常感谢。

TIA

Phil。


嗨Phil,


根据我的理解,你想在一些上显示一些动画GIF

你的表格。但是你发现动画GIF在WinForm中显示的速度比在Windows资源管理器中的图像预览中慢。

如果我不在基地,请随时告诉我。


我进行了一些测试并确实重现了这个问题。当我在WinForm上的PictureBox中显示一个

动画GIF时,动画比在Internet Explorer中显示的要慢一点。


我猜WinForm限制每秒显示的最大帧数。我已经在我们的内部数据库中搜索了
,但遗憾的是,到目前为止我还没有找到任何有关它的信息。


我将在我们的内部讨论组中咨询这个问题,一旦我获得任何消息,我会收到回复。


In添加,虽然我的动画GIF在WinForm中显示较慢,但是

动画很流畅。正如你所提到的,动画GIF你在表格中显示时看起来很生涩。你能不能给我发送

动画GIF?要获取我的实际电子邮件地址,请从我的

显示的电子邮件地址中删除在线。


感谢您的合作和耐心!


此致,

Linda Liu

Microsoft在线社区支持


===== =============================================

通过电子邮件收到我的帖子通知?请参阅
http://msdn.microsoft .com / subscripti ... ult.aspx#notif

ications。


注意:MSDN托管新闻组支持服务是针对非紧急问题

如果社区或微软支持人员在1个工作日内做出初步回复是可以接受的。请注意,每个跟随

的响应可能需要大约2个工作日作为支持

专业人士与您合作可能需要进一步调查才能达到

最有效的分辨率。该产品不适用于需要紧急,实时或基于电话的交互或复杂的b $ b项目分析和转储分析问题的情况。这种性质的问题最好通过联系

Microsoft客户支持服务(CSS)处理
href =http://msdn.microsoft.com/subscriptions/support/default.aspx\"target =_ blank> http://msdn.microsoft.com/subscripti...t/default.aspx

======================================== ==========


此帖子按原样提供。没有保证,也没有权利。




你确定你设置了右边的图片框的属性


通过实例这个让它看起来在每个屏幕上不同

http://msdn2.microsoft.com/en-us/lib .... sizemode.aspx



我将SizeMode设置为AutoSize,但我会尝试手动设置大小并查看

if这有什么不同。

这不能解释使用ImageAnimator时的问题,例如

这个例子直接在表格上绘制。


I thought it would be nice to display some animated GIFs on some of my
forms. I put a PictureBox control on a form, and loaded my GIF file in. It
animates, but not properly. It seems very jerky and dwells on some frames
longer than it should. Searching for this problem, I have found several
people who have stated that animated GIFs don''t work in a PictureBox at all,
and you have to use the ImageAnimator. I assume they must be referring to an
older version, because I do get some animation, it''s just not quite right. I
am using VB2005 Express.
I thought it might be a problem with running under the IDE, but I still get
the same problem if I build the project and run the release exe.
I looked up ImageAnimator in the help, and it is not especially helpful, but
there was some sample code. I tried this, and I get exactly the same
problem. The image displays and animates, but the timing seems all wrong. If
I use the image preview in Windows XP the image displays fine, so I don''t
think it''s a problem with the GIF file itself.
Any suggestions, greatly appreciated.
TIA
Phil.

解决方案

Phil,

You are sure that you set the properties of the picturebox right

By instance this ones let it look on every screen different

http://msdn2.microsoft.com/en-us/lib....sizemode.aspx

Cor

"Phil" <N/Aschreef in bericht news:13*************@corp.supernews.com...

>I thought it would be nice to display some animated GIFs on some of my
forms. I put a PictureBox control on a form, and loaded my GIF file in. It
animates, but not properly. It seems very jerky and dwells on some frames
longer than it should. Searching for this problem, I have found several
people who have stated that animated GIFs don''t work in a PictureBox at
all, and you have to use the ImageAnimator. I assume they must be referring
to an older version, because I do get some animation, it''s just not quite
right. I am using VB2005 Express.
I thought it might be a problem with running under the IDE, but I still
get the same problem if I build the project and run the release exe.
I looked up ImageAnimator in the help, and it is not especially helpful,
but there was some sample code. I tried this, and I get exactly the same
problem. The image displays and animates, but the timing seems all wrong.
If I use the image preview in Windows XP the image displays fine, so I
don''t think it''s a problem with the GIF file itself.
Any suggestions, greatly appreciated.
TIA
Phil.


Hi Phil,

Based on my understanding, you''d like to display some animated GIFs on some
of your forms. But you find that the animated GIF is slower when it is
displayed in a WinForm than in the image preview in the Windows Explorer.
If I''m off base, please feel free to let me know.

I performed some tests and did reproduce the problem. When I display an
animated GIF in a PictureBox on a WinForm, the animation is a little slower
than displayed in the Internet Explorer.

I guess WinForm limits the maximum frames displayed per second. I have
seached in our inner database, but unfortunately, I haven''t found any
information about it so far.

I will consult this issue in our inner discussion group and as soon as I
get any news, I will get it back to you.

In addtion, although my animated GIF is displayed slower in a WinForm, but
the animation is smooth. As you have mentioned, the animated GIF you''re
using seems jerky when it is display in a form. Could you please send me
the animated GIF? To get my actual email address, remove ''online'' from my
displayed email address.

Thank you for your cooperation and patience!

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.



You are sure that you set the properties of the picturebox right

By instance this ones let it look on every screen different

http://msdn2.microsoft.com/en-us/lib....sizemode.aspx

I set SizeMode to AutoSize, but I''ll try setting the size manually and see
if that makes any difference.
That wouldn''t explain the problem when using ImageAnimator though, as in
that example it was drawing directly on the form.


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

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