In the X Window System, xwd is a program for capturing the content of the screen or of a window and saving it into a file. Its name stands for X Window Dump. The same name is also used for referring to the image format it uses to save the dump.

xwd can be run in two ways: if user specifies the whole screen or the name or identifier of a window as an argument, the program captures the content of the window; otherwise, it changes the shape of the cursor and waits for the user to click in a window, whose content is then captured.

At the X Window core protocol level, xwd uses the fact that any X client can request the content of an arbitrary window, including ones it did not create, using the GetImage request (this is done by the XGetImage function in the Xlib library). The content of the whole screen is obtained by requesting the content of the root window.

The file generated by xwd can then be read by various other X utilities such as xwud, xv, and the GIMP, or converted to other formats; the netpbm suite allows a useful pipeline to be constructed:

$ xwd | xwdtopnm | pnmtopng > Screenshot.png

External links


 
 
 

Join the WikiAnswers Q&A community. Post a question or answer questions about "xwd" at WikiAnswers.

 

Copyrights:

Wikipedia. This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Xwd" Read more

Search for answers directly from your browser with the FREE Answers.com Toolbar!  
Click here to download now. 

Get Answers your way! Check out all our free tools and products.

On this page:   E-mail   print Print  Link  

 

Keep Reading

Mentioned In: