⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xgrabsc.man

📁 speech signal process tools
💻 MAN
字号:
.\"========================================================================.\".\" Name - xgrabsc.man.\".\" Version:	1.6.\".\" ccsid:	@(#)xgrabsc.man	1.6 - 7/26/91 15:15:50.\" from: 	ccs/s.xgrabsc.man.\" date: 	7/26/91 15:16:11.\".\" Copyright (C) 1990, Bruce Schuchardt.\" See the end of this document for full copyright information..\".\" Description:  Man page for xgrabsc.\".\"========================================================================.\".TH XGRABSC 1X.\".SH NAMExgrabsc \- grab rectangular screen images and store in files.\".SH SYNTAX\fIxgrabsc\fR \ [options].\".SH DESCRIPTION\fIxgrabsc\fR lets you grab arbitrary rectangular images from anX server and writes them to standard output in a variety of formats..PPCommand line options also allow reduction of colormaps, halftoningand dithering of color images, and direct mapping of color imagesto monochrome..PPThe default output format is gray-scale non-encapsulated Postscript..SH OPTIONS.TP 8-d \fIdisplayName\fPUse an alternate display.  If no display is specified on the command line,xgrabsc looks for the environment variable DISPLAY for the name of thedisplay and screen to grab from.  Note that you must have permission toaccess the display on another computer..TP-gSilence the bell that is normally rung while the screen is being accessed..TP-i \fIwindow ID\fPDump the window with the given ID..TP-nInhibit server grabs.  Normally xgrabsc will "grab" the server sothat the screen is frozen while a rectangle is selected and the imageis extracted.  If the screen is not frozen, rubber-banding may causevideo droppings on portions of the screen that are changing..TP-o \fIoutput-file\fPWrite output to \fIoutput-file\fP instead of standard output..TP-rDump the entire screen (root window)..TP-s \fIseconds\fPSleep for \fIseconds\fP seconds before commencing operation.  Thisshould be used if you need some time to get the target image ready..TP-vDisplay processing information on standard error output (stderr)..TP-wUse \fIxwd\fP style window selection and dump selected window..sp 3.TP-b \fIpercent\fRbrighten or darken the image by \fIpercent\fR.  Percentages are givenas integers.  As in \fIxloadimage\fR, 100 is the base and a largernumber will brighten the image while a smaller number will darken theimage..TP-A \fIandBits\fRClear all colormap bits up to the given plane.  This has the effect ofdarkening the image somewhat and shrinking the apparent depth of the image(and, consequently, the size of the color table).  \fIAndBits\fR shouldbe in the range [1-8] inclusive..TP-O \fIorBits\fRSet all colormap bits up to the given plane.  This brightens the imagesomewhat and also shrinks the apparent depth of the image.  Whenboth \-A and \-O are specified, ANDing will occur before ORing..TP-BConvert the source color image to a monochrome bitmap.  All colorsfalling below the average color intensity are mapped to black.  Othersare mapped to white..TP-HConvert the source color image to a halftoned monchrome bitmap.Resolution is maintained by increasing the size of the image bya factor of four on both axes..TP-DConvert the source color image to a dithered monochrome bitmap.This is like halftoning, but resolution is sacrificed to keep theresulting image the same size as the original.  The matrix ditheringalgorithm used with this option is most suitable for line-drawingsand text.  For more complex graphics the \fI-F\fR option is recommended..TP-FConvert the source color image to a dithered monochrome bitmap withthe Floyd-Steinberg algorithm..sp 3.TP-CWrite output in \fIPostscript\fP format using the colorimage operatorfor color printers.Color to grayscale conversion is bundled into the output so you can actuallyuse either color or cheaper grayscale printers.  For monochrome displays, the\fI-P\fP option will give more compact output, and is the preferred format..TP-PWrite output in \fIPostscript\fP format.  Output will be run-length-encodedif encoding will result in any savings unless you use the \fI-c\fP option.The number of bits per Postscript sample is determined by the depth of theimage..TP-cSuppress Postscript image run-length encoding.  This option is ignoredunless the \fI-P\fP Postscript-output option is also specified..TP-eCreate Encapsulated Postscript output, rather than normal vanillaPostscript.  This adds EPSF header comments and removes all scaling andtranslation of the image.  You must also select the type of Postscriptoutput you want to have with the \fI-P\fP or \fI-C\fP options..TP-WWrite output in \fIxwd\fP format..TP-XWrite the output in X Bitmap format if the image is black and white, orX Pixmap format if the image is gray or color..TP-ZWrite output in a format suitable for loading into the \fIpuzzle\fPprogram (see example below)..sp 2.SH PROCESSING ORDERIt is helpful to know the order of processing when multiple processingoptions are given on the command line..PPProcessing is done in five phases:  1) set up, 2) obtain image,3) process colors, 4) poly->monochrome conversions, and 5) output conversion..PPThe set-up phase includes processing command-line options, sleeping,connecting to X-Windows, freezing the screen and grabbing the mouse..PPAfter the mouse is grabbed, rubber-banding occurs until a mouse buttonis released.  The image is then pulled from the screen and the mouseand screen are released..PPIf the image is not monochrome, the color manipulation functions arethen applied in this order: brighten, AND, and OR..PPOnly one polychrome to monochrome conversion is allowed.  If none ofthese is chosen, the color table of a polychrome image is compressedin preparation for output conversion..PPThe output stream is then opened and the image is written in the selectedoutput format..sp 2.SH ENVIRONMENTXGRABSC - specifies command line arguments to be processed before thoseactually entered on the command line..PPDISPLAY - specifies the name of the display that xgrabsc should grab from..sp 2.SH EXAMPLESThe simplest form of use, giving Postscript output, is.sp.ti +5xgrabsc >outfile.ps.sp.PPTo write output in \fIPostscript\fP format and send to the printer,use.sp.ti +5xgrabsc | lpr.spIt is sometimes helpful to brighten an image somewhat before it isformatted for Postscript output.  E.g., to brighten by 30%.sp.ti +5xgrabsc -Pb 130 | lpr.sp.PPIf your printer supports color, and your display is color, you canhave xgrabsc generate color output instead of gray scale:.sp.ti +5xgrabsc -C | lpr.sp.PPThe default Postscript output attempts to scale the image so thatit will all fit on one page, and is centered on the page.  If youare grabbing images to include in documents, such as with FrameMaker,you should ask for Encapsulated Postscript output with the \fI-e\fPswitch.  For example:.sp.ti +5  xgrabsc -eC -o image1.eps.spEncapsulated Postscript files may be printed on a printer, butbe aware that xgrabsc does not include the colorimage operator inEncapsulated Postscript files, so color dumps can only be printedon color printers.  If you know something about programming, youcan edit a non-eps dump file and extract the colorimage operatorfrom it and insert it into your eps file and then send the modifiedfile to the printer..PPTo select an entire window, write output in \fIpuzzle\fP formatand read into the puzzle program, use the commands.sp.ti +5xgrabsc -wZ >outfile.pzl.br.ti +5puzzle -picture outfile.pzl.sp.PPTo have xgrabsc sleep for three seconds before rubber-banding, displayprocessing information, and have the result displayed with xwud,.sp.ti +5xgrabsc -Wvs3 | xwud.sp.PPTo grab an image from another server and then reduce the colormapto three bits by ANDing, use.sp.ti +5xgrabsc -dother:0.0 -A5 -X >outfile.xpm.spYou will, of course, have to go to the other machine to select theimage with that machine's mouse..sp 2.SH LIMITATIONSColormaps larger than 256 entries are not currently supported. Thismeans that it won't work with your fancy 24-bit display.  Use xwdand the xwd2ps utility for now..PPThe default screen visual is used as the visual for the image.Visuals are associated with particular windows, and xgrabsc pretendsignorance about any windows but the root..PPThis software has been tested with StaticGray and 8-plane PseudoColoron DECStations (using both UWS 2.2 and X11 Release 4).  It has alsobeen tested with 8-plane PseudoColor on Sun SparcStations and variousother platforms using X11 Release 4..PPX11 Pixmap format is rather verbose.You may want to run large images through the \fIcompress\fP utilitybefore storing them in a file.  E.g.,.sp.ti +5xgrabsc | compress >outfile.xpm.Z.sp.SH AUTHOR.nf     Bruce Schuchardt    Servio Corporation      bruce@slc.com.fi.sp 2.SH ACKNOWLEGEMENTS.PPSome of the source code for xgrabsc came fromthe xloadimage project by Jim Frost (jimf@saber.com) and others.  Jim'scopyright has been included both here and in the source code..PPThe idea for using run-length encoding for Postscript output came fromthe xwd2ps project by Robert Tatar and Craig A. McGowan, as did thecolorimage hack for monochrome display devices..sp 2.SH COPYRIGHTCopyright (c) 1990, 1991 Bruce Schuchardt.PP\fIXgrabsc\fR is copywritten material with a very loose copyrightallowing unlimited modification and distribution if the copyrightnotices are left intact.  Various portions are copywritten by variouspeople, but all use a modification of the MIT copyright notice.Please check the source for complete copyright information.  Theintent is to keep the source free, not to stifle its distribution, soplease write to me if you have any questions..PPTHE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, INNO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT ORCONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSSOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCEOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THEUSE OR PERFORMANCE OF THIS SOFTWARE..s 2.SH SEE ALSOX(1X), xhost(1), xwd(1X), xwud(1X), xwd2ps(1X), xloadimage(1X), xpm(1X),xpr(1X), puzzle(1X), compress(1), uncompress(1)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -