问题
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:
- You can get information about all screens using the
System.Windows.Forms.Screen
class. Use their bounds properties to determine their layout. - 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