ECE SoftwareBack to Magic...
Using xwpick to capture your magic layout
This page describes how to use the program xwpick to screen-capture your magic layout window. The xwpick program allows you to capture a window on the screen and write the contents to a file. Supported file formats are:
- PostScript (*.ps)
- Encapsulated PS (*.eps)
- EPS with preview(*.epsi)
- Graphics Interchange Format(*.gif)
- IBM PC (*.pcx)
- Macintosh (*.pict)
- PBM Plus (*.ppm)
It is assumed that you have already created a layout in magic that you would like to capture.
If you have not you may click here to download
a layout of a simple CMOS inverter for the use with this tutorial
(use the right mouse button and choose Save Link As
to save this file to disk).
Information on how to create a layout using magic can be found in the magic tutorials.
Screen Capture Procedure
The steps below assume you are using the source file for the CMOS inverter layout mentioned above, which has the file name inv1_1.mag. If you are using a different file substitute your file name as necessary.
- cd to the directory where the source file for your magic layout is located
- Launch magic with the layout pre-loaded by entering the command magic inv1_1. Notice that the *.mag file extension is not included in the command. Position the magic layout window so that there are no other windows on top of it. Any other window that is blocking the layout window will be captured (i.e. it will show up in the screen capture).
- From a unix command prompt (not the magic command prompt), enter the command xwpick to start the xwpick program. You will be presented with a list of possible file name extensions and a command prompt of the form File name:
- At the File name: prompt enter test.ps. This will create a gif file named test.ps in the directory that you started the xwpick program. The type of file that is created is determined by the file extension you provide at the File name: prompt. For instance, to create a gif file you would have entered test.gif at the File name: prompt.
- After you have entered test.ps at the File name prompt and hit return, you will notice the xwpick window has a blinking effect around the the border. The window that is blinking is the window that will be captured, so at this point you should move the cursor to you magic layout window. You will notice the blinking effect move from the xwpick window to the layout window. If you position the cursor inside the border of the layout window, the border will not blink and will not be captured. If you position the cursor on the border of the layout window, the border will blink and will be captured.
- With the cursor positioned at the layout window, click the left mouse button one time. You will hear one beep indicating the capture process has been initiated, followed by two beeps indicating that the file test.ps has been written.
- You will now have a file named test.ps in the directory that you launched xwpick from. View the file with the gv program by entering the command gv test.ps &. Click here to see what the file should look like. quit button.
- Currently (9/22/00) we have a color laserjet printer named CJ2206 available to grad students in EUII-2206. Please only send postscript files to this printer (do not send gif, jpg, etc...). To send your postscript file to this printer enter the command "lp -dCJ2206 test.ps".