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

📄 zgv.1

📁 一个利用SDL语言来实现svgalib函数的示例程序
💻 1
📖 第 1 页 / 共 5 页
字号:
.\" *** Auto-generated by makeman, *edits will be lost*! ***.\".\".TH ZGV 1 "28th January 2005" "Version 5.9" "Graphics Software".SH NAMEzgv \- picture viewer for VGA/SVGA displays.\".SH SYNOPSISzgv [\fIoptions\fR] [\fIstart-dir\fR | \fIfile\fR [\fIfile2\fR ...]].SH "DESCRIPTION"(NB: This man page is automagically generated from zgv'stexinfo file, and so may look a bit odd.We apologise for the inconvenience. :-)).PPzgv lets you view pictures on Linux or FreeBSD boxes with VGA/SVGAdisplays. The kinds of pictures it supports are raster-format pictures(sometimes called `bitmaps' and/or `pixmaps'); things like GIF files,JPEG files, PNG files, and so on. (The full list of file formatssupported is listed elsewhere. See \fBSupported File Formats\fR.).PPMost of the time, you will probably want to use zgv's file selector(see \fBThe File Selector\fR) to pick which file(s) to view. This is whatappears when you start zgv as just `\fBzgv\fR' (see \fBOptions\fR). Itdisplays a list of subdirectories and picture files in the currentdirectory, along with small `thumbnail' versions of the pictures if theyexist. (If no thumbnails appear for a given directory, or if they aremissing for some files, you can create/update them by pressing `\fBu\fR'.See \fBUpdating Thumbnails\fR.).PPWhen you've picked a file to view, you can view it by pressing`\fBEnter\fR'. This puts you into the viewer, where the whole screen isused to display the picture (see \fBThe Viewer\fR). You can then movearound the picture (if it is larger than the screen) using the cursorkeys. Pressing `\fBEsc\fR' returns you to the file selector, where you canpick another file to view, or you can quit zgv by pressing `\fBEsc\fR'again..PPWhile zgv is by default controlled entirely from the keyboard, it doeshave quite good mouse support you can enable if you like that sort ofthing. See \fBUsing a Mouse\fR..PPThis overview is, as you might expect, only the very simplest ofintroductions to what zgv can do, and describes only a very basic use ofzgv. zgv can do a lot more; read on to find out what..PP.SH "ACKNOWLEDGEMENTS"zgv was primarily written by Russell Marks, who also wrote this manual..PPMatan Ziv-Av added multiple-image animated GIF support, Photo-CDsupport, brightness/contrast support in high-colour modes, the originalfile-rename code, and some of the support for 32-bit modes, as well asinspiring a few other changes like high-res file selector support..PPCarsten Engelmann wrote the BMP support..PPEdwin Fong added support for command-line slideshows, and a few otherfeatures including the original mouse support..PPRadim Kolar added support for FreeBSD..PPCosta Sapuntzakis contributed code for much faster JPEG thumbnailgeneration..PPDimitar Zhekov added SDL mouse support..PP`\fBinstall-info\fR' is a (very) slightly modified version of theoriginal (which is part of the `\fBtexinfo\fR' package). This program isused during installation. I think it was mostly written by Karl Berry,but it's not terribly clear..PPThe authors of the special-purpose libraries zgv uses deserve credit ---JPEG and PNG might not have been supported in zgv without the JPEGlibrary, libpng and zlib. Most of all though, zgv would certainly nothave been written without VGAlib and later svgalib, and thanks are dueto Tommy Frandsen, Harm Hanemaayer, Michael Weller, Matan Ziv-Av andmany others for that..PPThanks also to the zgv users who've contributed bug reports,suggestions, ideas for features, and even... dare I say...compliments. zgv would be even worse without their input, so count yourlucky stars. :-).PPThis program is based in part on the work of the Independent JPEGGroup..PP``The Graphics Interchange Format(c) is the Copyright property ofCompuServe Incorporated. GIF(sm) is a Service Mark property ofCompuServe Incorporated.''.PP.SH "OPTIONS"Normally you'd invoke zgv as plain `\fBzgv\fR'. However, you can directlyspecify files to view or a start directory on the command-line. Inaddition, there are various options..PP(If you're new to zgv, you should probably skip the rest of this sectionfor now and come back to it later.).PPThe general format of the zgv command-line goes roughly like this:.PPzgv [\fIoptions\fR] [\fIstart-dir\fR | \fIfile\fR [\fIfile2\fR ...]].br.PPTwo types of options are supported --- the traditional Unixsingle-letter options, and GNU-style long options. Both forms are listedin the table below, but not all long options have single-letterequivalents..PPNote that all options are processed after any configuration file(s).Config file settings are just like the long-option names below minus the`\fB--\fR' (see \fBConfiguring zgv\fR), though a few command-line optionsare not permitted as config file settings (e.g. `\fBhelp\fR'), and viceversa..PPHere's what the options do:.PP`\fB-A\fR'.RS.RE`\fB--auto-animate\fR'.RSAutomatically animate multiple-image GIF files (see \fBMultiple-imageGIF Animation\fR). This limits your viewing options greatly, but can behandy for slideshows and the like..PP.RE`\fB--auto-mode-fit\fR'.RSAutomatically switch modes to suit image size..PP.RE`\fB--auto-mode-fit-diff \fIdiff\fR\fR'.RSWhen choosing an auto-mode-fit mode, add \fIdiff\fR to each mode'swidth and height. For example, with a value of 20 any picture up to820x620 will be displayed in an 800x600 mode if possible. If\fIdiff\fR is negative, for example -20, the effect is reversed; anypicture above 780x580 will be displayed in a mode with a resolutionhigher than 800x600 if possible..PP.RE`\fB-p\fR'.RS.RE`\fB--avoid-single-progress\fR'.RSDon't show progress indicator when loading a single file from thecommand-line..PP.RE`\fB--black-background\fR'.RSTry to use a black (or nearest-to-black) background when in 8-bit modes.This can be quite nice for consistency's sake when viewing (say) amixture of GIFs and JPEGs, but the extra pass over the loaded imageslows things down slightly..PP.RE`\fB-b\fR'.RS.RE`\fB--block-cursor\fR'.RSUse a blocky outline cursor in the selector, which is rather unsubtlebut more obvious..PP.RE`\fB--brightness \fIadjust_val\fR\fR'.RSSpecify how much to add to colour values to change brightness (default0). Values less than zero decrease brightness, values greater than zeroincrease it. Brightness is applied after contrast by default..PP.RE`\fB--centre\fR'.RS.RE`\fB--center\fR'.RS(Normally enabled, use e.g. `\fB--centre=off\fR' to disable.) By defaultzgv centres pictures smaller than the screen, in whichever dimensionsthey are smaller. This setting gives you a way to disable this, so thatpictures always start in the top-left.			.RE`\fB--clear-screen-on-exit\fR'.RSClear the screen on exit. (Normally, zgv leaves the original screencontents intact.).PP.RE`\fB--col-black \fIr g b\fR\fR'.RSSet colour used for `black' (text) in selector; RGB values should be inthe range 0-63 for this and the other colour settings below, and thethree numbers should be quoted, e.g. `\fB--col-black "10 20 30"\fR'..PP.RE`\fB--col-dark \fIr g b\fR\fR'.RSSet colour used for lowlights in selector..PP.RE`\fB--col-light \fIr g b\fR\fR'.RSSet colour used for highlights in selector..PP.RE`\fB--col-medium \fIr g b\fR\fR'.RSSet colour used for background in selector..PP.RE`\fB--col-tagged \fIr g b\fR\fR'.RSSet colour used for tagged files in selector..PP.RE`\fB--contrast \fImultiplier\fR\fR'.RSSpecify how much to multiply colour values by to change contrast(default 1.0). zgv multiplies each colour's difference from grey by thisnumber; values less than one decrease contrast, values greater than oneincrease it. Negative values are also allowed, and act in a similar way,but with the picture's colours inverted. Contrast is applied beforebrightness by default..PP.RE`\fB--delete-single-prompt\fR'.RS(Normally enabled, use `\fB--delete-single-prompt=off\fR' to disable.) Ifdisabled, don't prompt for confirmation when deleting a single file..PP.RE`\fB--delete-tagged-prompt\fR'.RS(Normally enabled, use `\fB--delete-tagged-prompt=off\fR' to disable.)If disabled, don't prompt for confirmation when deleting all taggedfiles..PP.RE`\fB--dither-16col-fast\fR'.RS(Normally enabled, use `\fB--dither-16col-fast=off\fR' to disable.) Bydefault, zgv uses a (reasonably fast) ordered dither when displaying adithered colour image in 640x480x4 mode. But if you disable thissetting, it uses error-diffused dithering (which looks better but israther noticeably slower)..PP.RE`\fB--dither-hicol\fR'.RSIf enabled, use dithering in `high-colour' modes, i.e. 15/16-bitmodes. This makes colour gradients smoother, but slows things downquite a bit..PP.RE`\fB--fake-cols\fR'.RS(Normally enabled, use `\fB--fake-cols=off\fR' to disable.) If disabled,don't fake extra greyscales and colour depth in 8-bit modes.See \fBIncreased Greyscales\fR, for details..PP.RE`\fB--force-fs-16col\fR'.RSForce the use of the 640x480 16-colour mode for the selector..PP.RE`\fB-j\fR'.RS.RE`\fB--force-viewer-8bit\fR'.RSForce all images to be loaded as 8-bit. Normally zgv will load 24-bitimages (e.g. colour JPEGs) as 24-bit if you have any modes capable ofdisplaying the image in 15, 16, 24, or 32-bit colour..PP.RE`\fB--fs-16col-colour-thumbnails\fR'.RS.RE`\fB--fs-16col-color-thumbnails\fR'.RSUse low-quality colour thumbnail pictures when the file selector isusing 640x480 16-colour mode. Normally zgv uses higher-qualitymonochrome thumbnails in this situation..PP.RE`\fB--fs-ignore-old-pos\fR'.RSDon't recall previous cursor position in a directory when returning toit later. (This mechanism only applies when changing directory`normally'; jumping directly to another dir with `\fBG\fR' never does sucha save/restore (see \fBChanging Directory\fR).).PP.RE`\fB--fs-magic\fR'.RSUse `magic number'-type identification to determine which files shouldbe listed in the file selector. This is more accurate, but very muchslower. See \fBFile Type Identification\fR, for a discussion of thetradeoffs involved..PP.RE`\fB--fs-perfect-cols\fR'.RSDon't change thumbnail colours when using the file selector to make therest of the selector look right. See \fBThumbnail Issues\fR..PP.RE`\fB--fs-slow-thumbnail-update\fR'.RS`Walk' through the directory when updating thumbnails, moving the cursorover every single picture whether it needs updating or not. Normally,zgv completely skips any pictures which don't need updating, which makesit considerably faster on large directories and/or slow machines..PP.RE`\fB--fs-small-text\fR'.RSReduce the size of the filename text in the selector. You may find thisuseful if you think the text is too big, or if you'd like to see more ofthe filename without having to press `\fB:\fR'..PP.RE`\fB--fs-start-mode \fImodespec\fR\fR'.RSSpecify the video mode zgv should start off using for the fileselector. (The default is 640x480x8 if possible, otherwise 640x480x4.)The `modespec' should be the width, height, and depth in quotes, e.g.`\fB"640 480 8"\fR'. See \fBVideo Modes\fR, for details of precisely whatthis means. The specified depth is actually ignored in this case, asyou can only choose 8-bit modes for the selector..PP.RE`\fB-t\fR'.RS.RE`\fB--fs-thick-text\fR'.RSThicken the text (filenames etc.) in the file selector (and elsewhere).(Note that if \fIline-text\fR has been enabled, then\fIfs-thick-text\fR only has an effect if \fIblock-cursor\fR is on aswell.).PP.RE`\fB--fullscreen\fR'.RS(Normally enabled, use `\fB--fullscreen=off\fR' to disable.) Thisoption only applies when using the SDL backend. By default, zgvgenerally uses the entire screen for its display. But if you disablethis option, it tries to run in a window when possible (e.g. whenrunning under X). Note that zgv won't be able to fill the screen inmodes it doesn't natively support, in either case..PP.RE`\fB-G \fIval\fR\fR'.RS.RE`\fB--gamma \fIval\fR\fR'.RSSet the gamma adjustment used (see \fBGamma Adjustment\fR). This also setsthe `initial value' used when resetting the gamma adjustment. Thedefault is 1.0, i.e. no adjustment..PP.RE`\fB--gnulitically-correct\fR'.RSGNU has \fIPOSIXLY_CORRECT\fR for compatibility with silly POSIXmisfeatures, and zgv has....PP.RE`\fB-h\fR'.RS.RE`\fB--help\fR'.RSDisplay a list of options and a terse description of what the optionsdo..PP.RE`\fB-i\fR'.RS.RE`\fB--ignore-errors\fR'.RSWhen loading a single file from the command-line, ignore (some) errors.Only meaningful for PNG currently..PP.RE`\fB--jpeg-index-style \fIstyle\fR\fR'.RSSpecify how to read JPEGs when creating thumbnails. Style `\fB1\fR' isthe quickest, but sometimes generates rather fuzzy/blocky thumbnails;`\fB2\fR' is fairly cautious (and the default), but still quite fast;`\fB3\fR' is an extremely cautious and slow method..PP.RE`\fB-J \fItype\fR\fR'.RS.RE`\fB--jpeg-speed \fItype\fR\fR'.RSSet JPEG speed/quality tradeoff. Type `\fB1\fR' is slow but accurate;`\fB2\fR' is faster but not as accurate (and the default); `\fB3\fR' isthe fastest but the least accurate..PP.RE`\fB--line-text\fR'.RSDraw text by drawing lines rather than using bitmap fonts. This looksworse but is faster..PP.RE`\fB-M\fR'.RS.RE`\fB--mouse\fR'

⌨️ 快捷键说明

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