本文介绍了如何通过编程方式更改Wallpaper?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在主要壁纸目录的几个子目录中有很多壁纸。


在Windows 7中,如果选择幻灯片,它只会使用图像当前目录,子目录中没有图像。


现在我的想法是编写一个程序,让我选择多个目录并创建一个新的临时目录,其中包含所有这些图像,设置窗口使用所有这些图像的幻灯片,然后删除临时目录。


即使原始文件被删除,Windows也会以某种方式缓存当前的壁纸图片,我认为如果它的幻灯片显示有很多图像会不会发生?


现在的问题是,如何在Windows 7中使用C#设置壁纸幻灯片?


并且谷歌搜索我发现很多人只说bmp或者只是bmp和jpg文件是支持的,这是真的吗?如果是这样,那么当我手动设置壁纸时我怎能只使用png图像呢?




解决方案

I have a lot of wallpapers I have in several sub directories of a main wallpaper directory.

Sadly in Windows 7 if you select a slideshow it only uses the images in the current directory and no images in sub directories.

Now my idea was to write a program that lets me select multiple directories and create a new temp directory with all the images in these, set windows to use a slideshow of all these images and then delete the temp directory.

Windows somehow caches the current wallpaper image even if the original file is deleted, I assume that doesn't happen if its a slideshow with many images?

Now the question is, how do I set a wallpaper slideshow in Windows 7 with C#?

And googling this I found a lot of people saying only bmp or only bmp and jpg files are supported, is this true? If so, how can that be when I can only use png images if I manually set a wallpaper?


解决方案


这篇关于如何通过编程方式更改Wallpaper?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-14 22:02