📄 xloadimage.1
字号:
.\" @(#)xloadimage.1 1.2 11/8/90.TH XLOADIMAGE 1 "7 November 1990".SH NAMExloadimage, xsetbg, xview \- load images into an X11 window or ontothe root window.SH SYNOPSIS\fIxloadimage\fR [global_options] {[image_options] image ...}.SH DESCRIPTION\fIXloadimage\fR displays images in an X11 window or loads them ontothe root window. See the \fIIMAGE TYPES\fR section below forsupported image types..PPIf the destination display cannot support the number of colors in theimage, the image will be dithered (monochrome destination) or have itscolormap reduced (color destination) as appropriate. This can also bedone forcibly with the \fI-halftone\fR and \fI-colors\fR options..PPIf more than one image is to be loaded, they will be merged into asingle image. The \fI-at\fR and \fI-center\fR options control wheresubsequent images will be loaded onto the initial image. Anycombination of color image depths and/or monochrome images may beloaded at one time. If merging two color images would overload thenumber of available colormap entries, the number of colors sharedbetween the images will be automatically reduced to fit..PPA variety of image manipulations can be specified, includingbrightening, clipping, dithering, depth-reduction, and zooming. Mostof these manipulations have simple implementations; speed was optedfor above accuracy..PPIf you are viewing a large image in a window, the initial window willbe at most 90% of the size of the display unless the window managerdoes not correctly handle window size requests or if you've used the\fI-fullscreen\fR option. You may move the image around in the windowby dragging with the first mouse button. The cursor will indicatewhich directions you may drag, if any. You may exit the window bytyping 'q' or '^C' when the keyboard focus is on the window..PPIt's possible to have a "slideshow" of many images by specifying the\fI-slideshow\fR or \fI-prog_slideshow\fP option..PPA wide variety of common image manipulations can be done by mixing andmatching the available options. See the section entitled \fIHINTS FORGOOD IMAGE DISPLAYS\fR for some ideas..PP\fIXsetbg\fR is equivalent to \fIxloadimage -onroot -quiet\fR and\fIxview\fR is equivalent to \fIxloadimage -view -verbose\fR..SH GLOBAL OPTIONSThe following options affect the global operation of \fIxloadimage\fR.They may be specified anywhere on the command line..TP 8-border \fIcolor\fRThis sets the background portion of the window which is not covered byany images to be \fIcolor\fR..TP-display \fIdisplay_name\fRX11 display name to send the image(s) to..TP-fullscreenUse the entire screen to display images. This option is incompatiblewith -onroot..TP-geometry \fIWxH[{+-X}{+-}Y]\fRThis sets the size of the window onto which the images are loaded to adifferent value than the size of the image. When viewing an image ina window, this can be used to reduce the size of the destinationwindow. When loading an image onto the root window, this optioncontrols the size of the pixmap which will be loaded onto the root.If the size is smaller than that of the display, the image will bereplicated..TP-installForcibly install the image's colormap when the window is focused.This violates ICCCM standards and only exists to allow operation withnaive window managers. Use this option only if your window managerdoes not install colormaps properly..TP-listList the images which are along the image path..TP-helpDisplays a short summary of xloadimage command line syntax..TP-onrootLoad image(s) onto the root window instead of viewing in a window.This is the opposite of \fI-view\fR. \fIXSetbg\fR has this option setby default. Loading with the -onroot option will fail if enoughsharable colors cannot be allocated from the default colormap..TP-pathDisplays the image path and image suffixes which will be used whenlooking for images. These are loaded from ~/.xloadimagerc andoptionally from a systemwide file (normally /usr/lib/xloadimagerc)..TP-prog_slideshowShow image arguments one at a time instead of merging them. While\fIxloadimage\fP is running (say as a background process) running theprogram \fInext_slide\fP will advance to the next image. Typing 'p'(for "pause") will cause the next invocation of \fInext_slide\fP towait indefinitely before advancing to the next image. Typing 'c'(for "continue") will undo the effect of 'p'. Typing 'q' will quit.This option is useful for automated demo programs in which image display iscoordinated with other programmed activity such as recorded voice output.See the manual page for \fInext_slide\fP for more information..TP-quietForces \fIxloadimage\fR and \fIxview\fR to be quiet. This is thedefault for \fIxsetbg\fR, but the others like to whistle. .TP-slideshowShow each image argument one at a time instead of merging them.Typing 'p' will back up to the previous image displayed, 'n' will goto the next image, and 'q' or '^C' will quit. This option is oftenused in conjunction with -fullscreen..TP-supportedList the supported image types. .TP-verboseCauses \fIxloadimage\fR to be talkative, telling you what kind ofimage it's playing with and any special processing that it has to do. This is the default for \fIxview\fR and \fIxloadimage\fR. .TP-versionPrint the version number and patchlevel of this version of\fIxloadimage\fR. Versions prior to version 1, patchlevel 03 do nothave this option and should be updated..TP-viewView image(s) in a window. This is the opposite of \fI-onroot\fR andthe default for \fIxsetbg\fR. .SH IMAGE OPTIONSThe following options may preceed each image. These options arelocal to the image they preceed. .TP-at \fIX\fR,\fIY\fRIndicates coordinates to load the image at on the first image. Ifthis is an option to the first image, and the \fI-onroot\fR option isspecified, the image will be loaded at the given location on thedisplay background. .TP-background \fIcolor\fRUse \fIcolor\fR as the background color instead of the default(usually white but this depends on the image type) if you aretransferring a monochrome image to a color display. .TP-brighten \fIpercentage\fRSpecify a percentage multiplier for a color image's colormap. A valueof more than 100 will brighten an image, one of less than 100 willdarken it. .TP-centerCenter the image on the first image loaded. If this is an option tothe first image, and the \fI-onroot\fR option is specified, the imagewill be centered on the display background. .TP-colors \fIn\fRSpecify the maximum number of colors to use in the image. This is away to forcibly reduce the depth of an image..TP-clip \fIX\fR,\fIY\fR,\fIW\fR,\fIH\fRClip the image before loading it. \fIX\fR and \fIY\fR define theupper-left corner of the clip area, and \fIW\fR and \fIH\fR define theextents of the area. A zero value for \fIW\fR or \fIH\fR will beinterpreted as the remainder of the image. .TP-ditherDither a color image to monochrome using a Floyd-Steinberg ditheringalgorithm. This is slower than \fI-halftone\fR but looks much better..TP-foreground \fIcolor\fRUse \fIcolor\fR as the foreground color instead of black if you aretransferring a monochrome image to a color display. This can also beused to invert the foreground and background colors of a monochromeimage. .TP-halftoneForce halftone dithering of a color image when displaying on amonochrome display. This happens by default when viewing color imageson a monochrome display. This option is ignored on monochrome images.This dithering algorithm blows an image up by sixteen times; if youdon't like this, the \fI-dither\fR option will not blow the image upbut will take longer to process..TP-name \fIimage_name\fRForce the next argument to be treated as an image name. This isuseful if the name of the image is \fI-dither\fR, for instance. .TP-xzoom \fIpercentage\fRZoom the X axis of an image by \fIpercentage\fR. A number greaterthan 100 will expand the image, one smaller will compress it. A zerovalue will be ignored. .TP-yzoom \fIpercentage\fRZoom the Y axis of an image by \fIpercentage\fR. See \fI-xzoom\fR formore information. .TP-zoom \fIpercentage\fRZoom both the X and Y axes by \fIpercentage\fR. See \fI-xzoom\fR formore information. Technically the percentage actually zoomed is thesquare of the number supplied since the zoom is to both axes, but Iopted for consistency instead of accuracy..SH EXAMPLESTo load the rasterfile "my.image" onto the background and replicateit to fill the entire background:.sp.ti +5xloadimage -onroot my.image.PPTo load a monochrome image "my.image" onto the background, using red
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -