如何找到墙纸图片? [英] How to find wallpaper image?

查看:71
本文介绍了如何找到墙纸图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何在WPF下没有PrintScreen的情况下查找用户的墙纸图像,并从设置为当前用户桌面图像的硬盘获取图像的路径?

在此先感谢;)

Hi everybody,

How do I find the user''s wallpaper image without PrintScreen under WPF and also get path of the image from hard disk that setting to the current user desktop image?

Thanks in advance ;)

推荐答案


壁纸设置在系统注册表中,希望给定的链接将帮助您一点...


http://stackoverflow.com/questions/7779491/ [
the wallpapers are set inside the system registry, I hope the given link will help you a little...


http://stackoverflow.com/questions/7779491/changing-wallpaper-with-a-batch-file-on-program-close-possible[^]

do google for how to read/write system registry, its very simple...

mark as answer if helps you solve your problem...


我不相信WPF提供了一种管理墙纸的方法,但是您可以获取/设置墙纸图像的位置在注册表中:

HKEY_CURRENT_USER \控制面板\桌面\墙纸

要以编程方式操作注册表,请参见
Microsoft.Win32.Registry [ ^ ]
I don''t believe WPF offers a way to manage the wallpaper, but you can get/set the location of the wallpaper image in the registry at:

HKEY_CURRENT_USER\Control Panel\Desktop\Wallpaper

To manipulate the registry programatically, see Microsoft.Win32.Registry[^]


这篇关于如何找到墙纸图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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