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

📄 xloadimage.1

📁 speech signal process tools
💻 1
📖 第 1 页 / 共 2 页
字号:
as the foreground color, replicate the image, and overlay"another.image" onto it at coordinate (10,10):.sp.ti +5xloadimage -foreground red my.image -at 10,10 another.image.PPTo center the rectangular region from 10 to 110 along the X axis andfrom 10 to the height of the image along the Y axis:.sp.ti +5xloadimage -center -clip 10,10,100,0 my.image.PPTo double the size of an image:.sp.ti +5xloadimage -zoom 200 my.image.PPTo halve the size of an image:.sp.ti +5xloadimage -zoom 50 my.image.PPTo brighten a dark image:.sp.ti +5xloadimage -brighten 150 my.image.PPTo darken a bright image:.sp.ti +5xloadimage -brighten 50 my.image.SH HINTS FOR GOOD IMAGE DISPLAYSSince images are likely to come from a variety of sources, they may bein a variety of aspect ratios which may not be supported by yourdisplay.  The \fI-xzoom\fR and \fI-yzoom\fR options can be used tochange the aspect ratio of an image before display.  If you use theseoptions, it is recommended that you increase the size of one of thedimensions instead of shrinking the other, since shrinking loosesdetail.  For instance, many GIF images have an X:Y ratio of about 2:1.You can correct this for viewing on a 1:1 display with either\fI-xzoom 50\fR or \fI-yzoom 200\fR (reduce X axis to 50% of its sizeand expand Y axis to 200% of its size, respectively) but the lattershould be used so no detail is lost in the conversion..PPWhen merging images, the first image loaded is used to determine thedepth of the merged image.  This becomes a problem if the first imageis monochrome and other images are color, since the other images willbe dithered to monochrome before merging.  You can get around thisbehavior by using the \fI-geometry\fR option to specify the size ofthe destination image -- this will force \fIxloadimage\fR to use thedefault depth of the display instead of 1.  The standard behaviormight be modified in the future if it becomes a problem..PPYou can perform image processing on a small portion of an image byloading the image more than once and using the \fI-at\fR and\fI-clip\fR options.  Load the image, then load it again and clip,position, and process the second.  To brighten a 100x100 rectangularportion of an image located at (50,50), for instance, you could type:.sp.ti +5xloadimage my.image -at 50,50 -clip 50,50,100,100 -brighten 150 my.image.PPOne common use of \fIxloadimage\fR is to load images onto the rootwindow.  Unfortunately there is no agreed-upon method of freeing someroot window resources, such as colormap entries, nor is there a way tomodify the root window colormap without confusing most windowmanagers.  For this reason, \fIxloadimage\fR will not allow theloading of images onto the root window if it cannot allocate sharedcolors from the root window's colormap.  I suggest the avoidance ofmultiple color image loads onto the root window, as these eat up rootwindow shareable colormap entries.  If you wish to have a slideshow,use the \fI-slideshow\fP or \fI-prog_slideshow\fP option, possiblytogether with \fI-fullscreen\fP..PPOne common complaint is that \fIxloadimage\fR does not have a\fI-reverse\fR function for inverting monochrome images.  In fact,this function is a special-case of the foreground and backgroundcoloring options.  To invert an image with a black foreground andwhite background (which is standard), use \fI-foreground white-background black\fR.  This will work on both color and monochromedisplays..SH PATHS AND EXTENSIONSThe file ~/.xloadimagerc (and optionally a system-wide file) definesthe path and default extensions that \fIxloadimage\fR will use whenlooking for images.  This file can have two statements: "path=" and"extension=" (the equals signs must follow the word with no spacesbetween).  Everything following the "path=" keyword will be prependedto the supplied image name if the supplied name does not specify anexisting file.  The paths will be searched in the order they arespecified.  Everything following the "extension=" keyword will beappended to the supplied image name if the supplied name does notspecify an existing file.  As with paths, these extensions will besearched in the order they are given.  Comments are any portion of aline following a hash-mark (#)..PPThe following is a sample ~/.xloadimagerc file:.PP.nf  # paths to look for images in  path= /usr/local/images        /home/usr1/guest/madd/images        /usr/include/X11/bitmaps  # default extensions for images; .Z is automatic; scanned in order  extension= .csun .msun .sun .face .xbm .bm.fi.PPVersions of \fIxloadimage\fR prior to version 01, patchlevel 03 wouldload the system-wide file (if any), followed by the user's file.  Thisbehavior made it difficult for the user to configure her environmentif she didn't want the default.  Newer versions will ignore thesystem-wide file if a personal configuration file exists..SH IMAGE TYPES.PP\fIXloadimage\fR currently supports the following image types:.sp.nf  Faces Project images  GIF images  Portable Bitmap (PBM) images  Sun monochrome rasterfiles  Sun color RGB rasterfiles  X10 bitmap files  X11 bitmap files  X pixmap files  G3 FAX images.fi.PPNormal, compact, and raw PBM images are supported.  Both standard andrun-length encoded Sun rasterfiles are supported.  Any image whosename ends in .Z is assumed to be a compressed image and will befiltered through "uncompress"..SH AUTHOR.nfJim FrostSaber Softwarejimf@saber.com.fi.PPOther contributing people include Barry Shein (bzs@std.com), KirkJohnson (tuna@athena.mit.edu), Mark Snitily (zok!mark@apple.com),W. David Higgins (wdh@mkt.csd.harris.com), and Dave Nelson(daven@gauss.llnl.gov).  The \fInext_slide\fP program and\fI-prog_slideshow\fP option are by Rod Johnson, Entropic ResearchLaboratory (johnson@wrl.epi.com)..SH FILES.nf.in +5xloadimage              - the image loader and viewerxsetbg                  - pseudonym which quietly sets the backgroundxview                   - pseudonym which views in a windownext_slide		- program to trigger advance to next slide/usr/lib/X11/Xloadimage - default system-wide configuration file~/.xloadimagerc         - user's personal configuration file.in -5.fi.SH COPYRIGHTCopyright (c) 1989, 1990 Jim Frost and others..PP\fIXloadimage\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..SH BUGSZooming dithered images, especially downwards, is UGLY..PPImages can come in a variety of aspect ratios.  \fIXloadimage\fR cannotdetect what aspect ratio the particular image being loaded has, northe aspect ratio of the destination display, so images with differingaspect ratios from the destination display will appear distorted.  See\fIHINTS FOR GOOD IMAGE DISPLAYS\fR for more information..PPThe GIF format allows more than one image to be stored in a single GIFfile, but \fIxloadimage\fR will only display the first..PPOnly PseudoColor, GrayScale, StaticColor, and StaticGray visuals aresupported.  These are the most common visuals so this isn't usually aproblem..PPYou cannot load an image onto the root window if the default visual isnot supported by \fIxloadimage\fR..PPOne of the pseudonyms for \fIxloadimage\fR, \fIxview\fR, is the samename as Sun uses for their SunView-under-X package.  This will beconfusing if you're one of those poor souls who has to use Sun'sXView..PPSome window managers do not correctly handle window size requests.  Inparticular, many versions of the twm window manager usethe MaxSize hint instead of the PSize hint, causing images whichare larger than the screen to display in a window larger than thescreen, something which is normally avoided.  Some versions of twmalso ignore the MaxSize argument's real function, to limit the maximumsize of the window, and allow the window to be resized larger than theimage.  If this happens, \fIxloadimage\fR merely places the image inthe upper-left corner of the window and uses the zero-value'ed pixelfor any space which is not covered by the image.  This behavior isless-than-graceful but so are window managers which are cruel enoughto ignore such details..PPThe order in which operations are performed on an image is independentof the order in which they were specified on the command line.Wherever possible I tried to order operations in such a way as to lookthe best possible (zooming before dithering, for instance) or toincrease speed (zooming downward before compressing, for instance).

⌨️ 快捷键说明

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