[ Pobierz całość w formacie PDF ]
.One interesting feature isthe ability to load images into a visual directory so you can see thumbnails of all images ina directory.Using the display command is easy, but you must be running the X WindowSystem.From a terminal command line, type the following:# display &This starts the program.To see a visual directory of your graphics, type the following:# display  vid:*.gif &This command line loads all.gif graphics in the current directory.Once the program starts,access its menus by pressing the left mouse button when your cursor is over the imageswindow.The display command imports and exports 58 different graphics formats.Theprogram features built-in help, and also can create slide shows of graphics (see Figure 16.2).Figure 16.2The display X11 client,included with theImageMagick softwarepackage, can be used tomake changes to manydifferent types of graphics.1 6 Graphics Tools 253For more information about ImageMagick, see its manual page, and the manual pages forthe other programs in the distribution.Comprehensive hypertext documentation is underthe /usr/doc/ImageMagick directory.Using the xv Command to View GraphicsThexv command is a handy previewer used to review, crop, scale, edit, or convert graphics.This command offers many sophisticated sizing and color controls, and you also can use xv,found under the /usr/X11R6/bin directory, to capture windows of your X11 session (you1 6must run X11 in order to use the xv command).The xv command loads a single file or series of graphics if you specify the files on thecommand line:# xv *.jpgThis command line loads all files ending in.jpg in the current directory.After the files areloaded, scroll through a list of files to make your changes, or use a graphic directory to selectyour files (see Figure 16.3).Figure 16.3The xv command is anX11 client that loads,edits, captures, saves, orprints images, andfeatures sophisticatedcolor controls.The xv command can import and export 18 different graphics file formats, and also printsgraphics.For more information about using xv, see its manual page, or read the definitivedocumentation (128 pages in PostScript format, nearly as many as the xv command s 107command-line options!) found under the /usr/doc/xv directory. 254 Hour 16Using the gv Command to View PostScript FilesThe gv command is a PostScript previewer used to examine or read PostScript graphics ordocuments before printing.You must run the X Window System to use this program.Thegv command, found under the /usr/X11R6/bin directory, is a much-improved previewer byJohannes Plass, and is based on the previous ghostview program by Tim Theilson (you ll finda symbolic link under /usr/X11R6/bin called ghostview, which points to gv).The gv command has more than 36 different command-line options, and uses a number ofX11 Toolkit options, such as geometry settings.You can start gv by itself, or specify a file onthe command line, along with its options:# gv -geometry 640x480 myfile.psThis command line starts the gv command in a 640 by 480 pixel window with the filemyfile.ps displayed.Another great feature of the gv command is that it reads portabledocument format, or.pdf files (see Figure 16.4).This is a handy way to read.pdf documentswithout installing an additional.pdf reader, such as Adobe Acrobat.Figure 16.4The gv X11 clientdisplays PostScript orPDF documents andgraphics, and provides aneasy-to-use interface topreviewing files beforeprinting.The gv command also uses a unique scrolling mechanism; instead of scrollbars alongside orbelow the document window, a rectangular button controls the document viewing area.Youalso can print whole documents or selected pages by using different commands.You ll find a comprehensive manual page, along with a hypertext series of.html files underthe /usr/doc/gv directory.1 6 Graphics Tools 255Painting and Drawing with xpaint and xfigIf you need to create or edit simple bitmap graphics, use David Koblas xpaint program, foundunder the /usr/X11R6/bin directory.For technical drawing, you ll also find the xfig program,which uses drawing objects (with handles), rather than a flat canvas.The xpaint program features a floating control window with tools, and a separate canvaswindow with color palettes for selecting or mixing colors.The xpaint program has severaldifferent command-line options, and also can use a resource file, called.Xpaintrc (located1 6in your home directory), to customize colors and patterns.You can load graphics from thecommand line:# xpaint mygraphic.bmpThe xpaint program starts, presents the image in an editing window, and displays a floatingwindow of tools (see Figure 16.5) [ Pobierz całość w formacie PDF ]
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • agnieszka90.opx.pl