1 XWPICK Allows to pick an image from an arbitrary window or rectangular area of a X Window (DEC Window) server and write it to a file in a variety of formats. Synopsis XWPICK [file-spec] The output format is defined whether by the /FORMAT option or by the extension in the file name. Possible extentions are: .PS, .EPS, .EPSI, .GIF, .PCX, .PICT, .PPM When XWPICK is invoked, the user sees a blinking rectangle surrounding the contents of the window in which the mouse pointer is currently placed. When the mouse is moved to a different window,the perimeter automatically changes to the size of the new window. If the mouse pointer is placed on the Window Manager border of a window, then the blinking rectangle will surround the window together with the Window Manager border. To select the image inside the blinking rectangle it is sufficient to click the left mouse button. If a user-defined perimeter is required, then hold down the left mouse button to choose the first corner of the perimeter and then drag the mouse to define the opposite corner. The blinking rectangle will expand with the movement of the mouse. If it is required to produce some changes inside the selected area just before outputing to a file, for example, to change the palette or display a pop-up menu, then use the /PAUSE option. 2 /LOCAL Pick an image from the window under the mouse pointer. This option is intended to pick images from pop-up menus, which are on the screen only when a mouse button is pressed and disappear immediately after the button is released. 2 /WINDOW=id Pick an image from the window with integer identifier equival to id. The identifier for a window can be obtained with the X Window program XWININFO. To pick the entire screen (root window) the user may use the word ROOT as an identifier. 2 /GRAY Transfer the image to grayscale. This option can be used to optimize output on level 1 gray scale PostScript printers. 2 /REVERSE Transfer the image to reverse colors. This option can help you to save the toner on your printer in case when the image is too dark. 2 /PAUSE Do not output the image till the bar will be pressed. This option allows to use the mouse to produce some changes inside the selected image just before outputing to a file. 2 /FORMAT=(PS,EPS,EPSI,GIF,PCX,PICT,PPM) Set output format. If this option is omited then the output format is defined by the extension in the file name. Possible formats/extensions are: PS An Encapsulated PostScript file with a compressed image. The image is centered, rotated and scaled to fill the maximum space on a page. It is displayed in color on viewers and printers that support color Postscript, otherwise it is displayed as greyscale. This format is convenient for transparency preparation. EPS An Encapsulated PostScript file with a compressed image. The image is only centered, not rotated and scaled. It is intended for insertion into a document. EPSI The same as EPS, but contains a black and white preview. GIF Graphics Interchange Format (GIF). Use this format when you want to keep files or transfer them to other computers. It is also convenient for visualizations, for example, with XV by John Bradley. PCX PCX format for IBM PC. PICT PICT format for Macintosh. It is intended for image transfer on Macintosh, but GIF format is also convenient for this purpose (see Macintosh GIFConverter by Kevin A. Mitchell). PPM PPM format from the PBM Plus library by Jef Poskanzer. 2 Examples 1. $ XWPICK This is the simplest form of use. You will be prompted to input a file name. 2. $ XWPICK/LOCAL MENU.EPS This is an example of how to pick the image of a pop-up menu window and store it in a file MENU.EPS as encapsulated Postscript. 3. $ XWPICK/WINDOW=0x8000C1/GRAY CLOCK.PS This is an example of how to pick an image from the window with hexadecimal identifier 0x8000C1 and store it in a Postscript file as a grayscale image. 4. $ XWPICK/PAUSE/FORMAT=EPSI PICT.PS This is an example of how to use the /PAUSE option, which allows to change, if required, the selected image just before outputing to a file. The image will be stored in a file PICT.PS as encapsulated Postscript with preview. 2 Author Evgeni Chernyaev (chernaev@mx.ihep.su) Copyright (C) 1993, 1994 by Evgeni Chernyaev Permission to use, copy, modify, and distribute this software and its documentation for non-commercial purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both the copyright notice and this permission notice appear in supporting documentation. This software is provided "as is" without express or implied warranty.