创建图像动画 [英] Creating image animation

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

问题描述

假设我们有20张图片,我们必须显示一张图片
5秒后一次显示图像
那么我们要做的是
请为我们的项目提供帮助!... !!!!!!!!!

[edit]已删除喊话"-OriginalGriff [/edit]

Suppose we have 20 images and we have to display one
images at a time after 5 seconds
then what we have to done for that
please help us.... for our project!!!!!!!!!!!

[edit]SHOUTING removed - OriginalGriff[/edit]

推荐答案

Google[^] is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...


我猜你在这里正在做WinForms项目...

您可以创建动画的.GIF并将其显示在应用程序的WebBrowser控件中.
I am guessing you''re doing a WinForms project here...

You can create an animated .GIF and display it within a WebBrowser control in your application.
... OR ...


将图像存储在数组中,然后使用Timer对象和整数变量为数组建立索引


Store the images in an array and then use a Timer object and an integer variable to index the array

... DON''T ...


不要将PictureBox控件与动画的.gif一起使用.当某些.gifs显示在PictureBox中时,可能会因GDI +错误而使您的应用程序崩溃.我不确定,但是我的印象是local-palette .gifs可以做到这一点.


Do not use a PictureBox control with an animated .gif. Some .gifs can crash your app with a GDI+ error when displayed within a PictureBox. I''m not sure, but my impression is that local-palette .gifs do this.


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

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