如何在文件夹中检索图像并在mfc中获得幻灯片放映 [英] how to retrive the image in folder and get slide show in mfc

查看:105
本文介绍了如何在文件夹中检索图像并在mfc中获得幻灯片放映的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检索文件夹中的图像并逐个显示所有图像,如幻灯片放映(或)按钮一个接一个地点击....... PLZ让我这样做.... !谢谢....

How to retrive the images in a folder and get display all the images one by one like a slide show (or) by button clicking one after the other.......plz make me do this....!! thank u....

推荐答案

要使用MFC导航文件夹中的文件,您可以使用 FindFirstFile FindNextFile API。



要显示幻灯片,您可以将文件加载到缓冲区中并 BitBlt 他们在一个窗口中。



一个建议是使用循环列表预加载一些图像,何时你开始显示它们,只需用新文件覆盖你刚刚显示的那个,这样你就不会等到想要显示它时加载文件。



BitBlt只会复制图像,如果你想要转换,那么你必须将图像混合在一起(有多种方法可以做到这一点,使用谷歌)



Max,
To navigate files in a folder using MFC you can use the FindFirstFile, FindNextFile API.

To display a slideshow, you can load the files in a buffer and BitBlt them in a window.

One suggestion would be to use a circular list to pre-load a number of images and when you start displaying them, just overwrite the one you just displayed with a new file so that you will not wait for the file to be loaded when wanting to display it.

BitBlt will only copy the image over, if you want to have transitions, then you will have to blend the image together (there are multiple way to do this , use google)

Max,


这篇关于如何在文件夹中检索图像并在mfc中获得幻灯片放映的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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