In Linux, there is a command line utility called xwd , this is probably the 
best way to go, because it is included as part of the X-server packages... But 
(isn't there always one ?) The output file is saved as a ".xwd" file. Gimp has 
no problem displaying them, but other veiwers require Imagemagick to be 
installed.. and the conversion utils also seem to require it..
So.. the question is Can Pygame display ".xwd" files ?  If not, then is there 
an easy way to convert without installing more packages ?
.
If more linux packages have to be installed, then may as well use "import" or 
"fbgrab" which can make the conversion immediately. But as I said xwd is better 
because every linux user should have it.
.
Well, hope this helps you get the Linux version running anyway.
Dennis



 --- On Sun 05/06, Will McGugan < [EMAIL PROTECTED] > wrote:
From: Will McGugan [mailto: [EMAIL PROTECTED]
To: [email protected]
Date: Sun, 06 May 2007 16:58:05 +0100
Subject: Re: [pygame] How to use the current Desktop Wallpaper as pygame 
background

Horst JENS wrote:>Please point me to solutions/code snippets because i doubt 
that i'm the>first with this question:>>How to use the current Desktop 
Wallpaper as a background graphic for>pygame ?>>Do i have to check wich 
OS/variant the user is running and then locate>the current Desktop Wallpaper 
file in the users file system ?>Like Linux/Gnome, Linux/KDE, Windows98, WinXP, 
MacOSX etc?>or is there an elegant solution that works with every OS/Variant 
?>>I don't care if i get the Desktop Wallpaper or a Screenshot of the>Desktop 
with all the Icons on it...>I want to make an action game where the user feel 
that he has to defend>"his" very own Desktop.>  >PIL has a ImageGrab modules 
that can grab the current desktop and return an image. Alas, the documentation 
says it is Windows only.Will

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


Reply via email to