|
NAMExwpick - pick images from an X11-screen and store in filesSYNOPSISxwpick [-local] [-window id] [-gray] [-reverse] [-pause] [-format frmt] [<file>]DESCRIPTIONXwpick lets you pick an image from an arbitrary window or rectangular area of an X11-server and write it to a file in a variety of formats.The output format is defined whether by the -format option or by the extension in the file name. Possible formats/extentions are:
The main feature of xwpick is that it uses the Lempel-Ziv Welch (LZW) compression scheme for image encoding in Postscript, thus producing very compact files (4-5 times less than files produced with Run-Length encoding (RLE) and 10-20 times less than files produced without compression) HOW IT WORKSWhen 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 the -pause option can be used. OPTIONS
EXAMPLES
This is the simplest form of use. You will be prompted to input a file name.
This is an example of how to get an image in X11 pixmap format. First you pick the image from the screen into the file image.ppm and then convert it using the ppmtoxpm routine from the PBM PLUS library.
This is an example of how to pick the image of a pop-up menu window and store it in a file as encapsulated Postscript with preview.
This is an example of how to pick an image from the window by the window's identifier. First you find the identifier using the xwininfo command and then pick an image from the window and store it in a Postscript file as a grayscale image.
This is an example of how to send an image of the root window directly to the printer. AUTHOREvgeni Chernyaev chernaev@mx.ihep.suSEE ALSOxwd(1), xv(1), xgrabsc(1), XtoPS(1), xwininfo(1), ppm(5)COPYRIGHTCopyright (C) 1993, 1994 by Evgeni Chernyaev.
Visit the GSP FreeBSD Man Page Interface. |