This command dumps the contents of the graphics window to a file. The output file is in XWD (X Windows Dump) format. The syntax is:
filename is the name of the XWD file.
printim command may also be used for creating image output in other formats.
This command does not work in batch mode, or in version 2.1+ when Cairo is enabled.