Detect multiple monitors and set separate wallpapers for each

ε祈祈猫儿з 提交于 2019-12-06 14:23:44

问题


I'm starting a project to make a wall paper rotator for computers with multiple monitors.

1) how do you detect the monitors in windows and the associated resolution

2) how would i set the image per monitor. do I make one image that's crafted together or do I set each one individually and how?

thanks


回答1:


  1. You can get information about all screens using the System.Windows.Forms.Screen class. Use their bounds properties to determine their layout.
  2. Not possible on Windows (XP), you'll have to craft a big background image using the drawing routines in System.Drawing.

This "thread" contains some more info on manipulating wallpapers in windows: why does this code lock my files?



来源:https://stackoverflow.com/questions/1301817/detect-multiple-monitors-and-set-separate-wallpapers-for-each

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!