home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / xv221src / unsupt / vms / xv.hlp < prev    next >
Encoding:
Text File  |  1992-04-26  |  29.1 KB  |  592 lines

  1. 1 XV
  2.         An interactive image display for the X Window System.    XV is
  3.     an X11 program that displays images in the GIF, PBM, PGM, PPM, X11
  4.     bitmap,  JPEG,  Sun  Rastefile, and PM formats on 1-, 4-, 6-,  8-,
  5.     16-,  24-,  and  32-bit X displays.  xv will also read compress-ed
  6.     versions of these files.
  7.  
  8.     NOTE:  This   man  page  is  merely  the  text  portion  of    the
  9.     (PostScript)  XV  docs,  without  the  figures,  and  without  the
  10.     appendicies.   As such, it is highly recommended that you get your
  11.     hands on the *real* documentation.
  12.  
  13.         Execution Format:
  14.             xv [options] [filename [filename ...]]
  15.  
  16.  
  17. 2 OVERVIEW
  18.         XV lets you do a large number of things (many of them actually
  19.     useful), including, but not limited to, the following:
  20.     
  21.         o display an image in a window on the screen
  22.         o display an image on the root window, in a variety of styles
  23.         o arbitrarily stretch or compress the image
  24.         o rotate the image in 90--degree steps
  25.         o flip the image around the horizontal or vertical axes
  26.         o crop a rectangular portion of the image
  27.         o magnify any portion of  the  image  by any amount, up to the
  28.           size of the screen
  29.         o determine pixel values and x,y coordinates in the image
  30.         o adjust image brightness and contrast with a gamma correction
  31.           function
  32.         o apply different gamma functions  to the Red, Green, and Blue
  33.           color components, to correct for non-linear color response
  34.         o adjust global image saturation
  35.         o perform global hue remapping
  36.         o edit an image's colormap
  37.         o reduce the number of colors in an image
  38.         o dither in color and b&w
  39.         o smooth an image
  40.         o crop off solid borders automatically
  41.         o convert image formats
  42.         o generate Encapsulated PostScript
  43.  
  44.         Unfortunately the Automatic Checkbook  Balancing  Module still
  45.     isn't  completely  debugged,  and  is    not    included  in  this
  46.     distribution. 
  47.  
  48. 2 Starting_XV
  49.         NOTE: Unless  explicitly  stated  otherwise, the term  "click"
  50.     means "click with the Left mouse button."
  51.  
  52.         Start the program up by typing 'xv'.    After a short delay, a
  53.     window will appear with the default image (the  XV  logo,  credits
  54.     and revision date) displayed in it.  If you change the size of the
  55.     window  (using  whatever method your window manager provides), the
  56.     image will be automatically stretched to fit the window.
  57.  
  58. 2 Options
  59.         XV supports  literally  dozens of command line options and X11
  60.     resources.  Fortunately,  it  is doubtful that you'll ever need to
  61.     use more than a  small few.  The rest are provided mainly for that
  62.     'one special case' application of XV ...
  63.  
  64.         If you start XV with  the command 'xv -help', the current list
  65.     of options will be displayed:
  66.     
  67.         xv [-]  [-2xlimit] [-aspect w:h] [-bg  color]  [-black  color]
  68.            [-bw  width] [-cegeometry geom] [-cemap] [-cgeometry  geom]
  69.            [-clear]  [-cmap]  [-cursor char#] [-DEBUG level] [-display
  70.            disp]    [-dither]   [-expand  exp]  [-fg  color]  [-fixed]
  71.            [-geometry geom]  [-help]  [-hi  color]  [-hsv] [-igeometry
  72.            geom] [-imap] [-keeparound]  [-lo  color] [-max] [-maxpect]
  73.            [-mono]  [-ncols  nc]  [-nglobal]    [-ninstall]   [-nopos]
  74.            [-noqcheck]  [-owncmap]  [-perfect]  [-quit]  [-rbg  color]
  75.            [-rfg color] [-rgb] [-rmode mode] [-root]  [-rw]  [-slow24]
  76.            [-smooth]  [-visual  type]  [-wait  seconds] [-white color]
  77.            [-wloop] [filename ...]
  78.  
  79. 3 Basic_Options
  80.         -help
  81.         Print  usage  instructions,   listing  the  current  available
  82.         command-line options.  Any unrecognized option will do this as
  83.         well.
  84.  
  85.         -display  disp
  86.         Specifies the display that XV  should  attempt  to connect to.
  87.         If you don't specify a display,  XV  will  use the environment
  88.         variable $DISPLAY.
  89.  
  90.         -fg  color (Resource name: foreground  string)
  91.         Sets the foreground color used by the windows.
  92.  
  93.         -bg  color   (Resource name: background  string)
  94.         Sets the background color used by the windows.
  95.  
  96.         -hi  color  (Resource name: highlight  string)
  97.         Sets the highlight color used for the  top-left  edges  of the
  98.         control buttons.
  99.  
  100.         -lo  color (Resource name: lowlight  string)
  101.         Sets the lowlight color used for the bottom-right edges of the
  102.         control buttons, and also the background of some windows.
  103.  
  104.         -bw  bwidth (Resource name: borderWidth  integer)
  105.         Sets  the  width of the border on the windows.    Your  window
  106.         manager may choose to ignore this, however.
  107.  
  108. 3 Image_Sizing_Options
  109.         -geometry geom (Resource name: geometry string)
  110.         Lets you specify the size and placement of the 'image' window.
  111.         It's most useful when you only specify a  position, and let XV
  112.         choose  the  size.  If you specify a size  as  well,  XV  will
  113.         create a window of that size, unless -fixed is specified.  The
  114.         geom  argument  is  in the form of a normal X geometry  string
  115.         (e.g.  ``300x240'' or ``+10+10'' or ``400x300+10+10'').
  116.  
  117.         -fixed  (Resource name: fixed  boolean)
  118.         Only used  in  conjunction  with the -geometry option.  If you
  119.         specify a window  size  with  the  -geometry  option,  XV will
  120.         normally stretch the picture  to  exactly  that size.  This is
  121.         not always desirable, as it  may  seriously distort the aspect
  122.         ratio of the picture.  Specifying  the  -fixed option corrects
  123.         this behavior by instructing XV to use  the specified geometry
  124.         size as a maximum window size.  It will, however, preserve the
  125.         original aspect ratio of the picture.
  126.  
  127.         For example, if you give a rectangular geometry of  '320x240',
  128.         and  you  try  to  display  a  square picture with a  size  of
  129.         '256x256', the window opened will actually be '240x240', which
  130.         is  the largest  square  that  still  fits  in  the  '320x240'
  131.         rectangle that was specified.
  132.  
  133.         -expand  exp  (Resource name: expand  floating-point)
  134.         Lets you specify an  initial  expansion  or compression factor
  135.         for  the  picture.  You  can  specify  floating-point  values.
  136.         Values larger than zero multiply the  picture's  dimensions by
  137.         the given factor.  ( i.e., an expand factor of '3' will make a
  138.         320x200 image display as 960x600).
  139.  
  140.         Factors less than zero are treated as reciprocals.  (i.e.,  an
  141.         expand factor of  '-4'  makes  the  picture  1/4th  its normal
  142.         size.).  '0' is not a valid expansion factor.
  143.  
  144.         -aspect  w:h  (Resource name: aspect  string)
  145.         Lets you set an initial aspect ratio, and also sets  the value
  146.         used by the Aspect control.  The aspect ratio of nearly  every
  147.         X display  (and,  in  fact, any civilized graphics display) is
  148.         1:1.  What this means is that pixels appear to be 'square'.  A
  149.         100 pixel wide by 100 pixel high box will appear on the screen
  150.         as a square.  Unfortunately,  this  is  not the case with some
  151.         screens and digitizers.  The -aspect  option  lets you stretch
  152.         the  picture  so that the picture appears  correctly  on  your
  153.         display.    Unlike  the  other size-related options, this  one
  154.         doesn't  care  what the size of the overall picture  is.    It
  155.         operates on  a  pixel-by-pixel  basis,  stretching  each image
  156.         pixel slightly, in  either  width  or height, depending on the
  157.         ratio.
  158.  
  159.         Aspect  ratios  greater  than  '1:1'  (e.g.,  '4:3')  make the
  160.         picture  wider  than  normal.    Aspect ratios less than '1:1'
  161.         (e.g.   '2:3')  make  the picture taller than normal.  (Useful
  162.         aspect ratio:   A  512x480  image  that was supposed to fill a
  163.         standard 4x3 video screen  (produced by many video digitizers)
  164.         should be displayed with an aspect ratio of '5:4')
  165.  
  166. 3 Color_Allocation_Options
  167.         -ncols nc  (Resource name: ncols  integer)
  168.         Sets the maximum number of colors that XV will use.  Normally,
  169.         this is set to 'as many  as it can get'.  However, you can set
  170.         this to smaller values for interesting effect.   Most notably,
  171.         if you set it to '0', it will display the picture by dithering
  172.         with 'black' and 'white'.  (The actual colors used  can be set
  173.         by the -black and -white options, below.)
  174.  
  175.         -nglobal (Resource name: nglobal  boolean)
  176.         Adjusts the way the program behaves when it is unable  to  get
  177.         all  the  colors  it  requested.  Normally, it will search the
  178.         display's default  colormap,  and 'borrow' any colors it deems
  179.         appropriate.  These borrowed colors are, however, not owned by
  180.         XV, and as such,  can  changed  without  xv's  permission,  or
  181.         knowledge.    If  this happens,  the  displayed  picture  will
  182.         change, in a less-than-desirable direction.   If  you  specify
  183.         the -nglobal option, XV will not use 'global' colors.  It will
  184.         only use colors that it successfully allocated, which makes it
  185.         immune to any color changes.
  186.  
  187.         It should  be  noted  that  'use global colors' is the default
  188.         because color changes  aren't  generally  a problem if you are
  189.         only using XV to  display  a  picture for a short time.  Color
  190.         changes only really become a  problem if you use XV to display
  191.         a picture that you will be  keeping  around for a while, while
  192.         you go and do some other work  (such  as using XV to display a
  193.         background).  In such cases you will want to specify -nglobal.
  194.         Note:  using the -ncols or -root options automatically turn on
  195.         -nglobal.
  196.  
  197.         -rw  (Resource name: rwColor  boolean)
  198.         Tells  XV  to  use  read/write  color  cells.    Normally,  XV
  199.         allocates  colors read-only, which allows it to  share  colors
  200.         with other programs.  If you use read/write  color  cells,  no
  201.         other  program  can  use  the  colors  that XV is  using,  and
  202.         vice-versa.    The only reason you'd do such a thing  is  that
  203.         using  read/write color cells allows the Apply function in the
  204.         xv color editor window to operate much faster.
  205.  
  206.         -perfect  (Resource name: perfect  boolean)
  207.         Makes XV  try 'extra hard' to get all the colors it wants.  In
  208.         particular, when -perfect  is  specified, XV will allocate and
  209.         install its own colormap  if  (and  only  if) it was unable to
  210.         allocate all the desired colors.    This option is not allowed
  211.         in conjunction with the -root option.
  212.  
  213.         -owncmap  (Resource name: ownCmap  boolean)
  214.         Like '-perfect', only this option forces XV to always allocate
  215.         and  install  its  own colormap, thereby leaving  the  default
  216.         colormap untouched.
  217.  
  218.         -ninstall  (Resource name: ninstall  boolean)
  219.         Prevents  XV  from  'installing'  its  own colormap, when  the
  220.         -perfect  or  -owncmap  options  are  in  effect.  Instead  of
  221.         installing  the  colormap,  it  will  merely  'ask  the window
  222.         manager, nicely'  to take care of it.  This is the correct way
  223.         to  install  a    colormap  (i.e.,  ask  the  WM  to  do  it),
  224.         unfortunately, it doesn't actually seem to work in many window
  225.         managers,  so  the  default  behavior  is  for  XV  to  handle
  226.         installation itself.  However, this has been seen to annoy one
  227.         window manager (dxwm), so this option is  provided  if your WM
  228.         doesn't like programs installing their own colormaps.
  229.  
  230. 3 24-bit_Conversion_Options
  231.         The following options only come  into play if you are using XV
  232.     to display 24-bit RGB data (PPM files, color PM files, JPEG files,
  233.     and the output of bggen).  They  have  no effect whatsoever on how
  234.     GIF pictures or 8-bit greyscale images are displayed.
  235.  
  236.         -slow24  (Resource name: slow24  boolean)
  237.         Specifies  that  the  'alternate'  24-bit  to 8-bit conversion
  238.         algorithm is to be used by the program.  The default algorithm
  239.         dithers  the picture using a fixed set of colors that  roughly
  240.         approximate all displayable colors.    The  -slow24  algorithm
  241.         picks the 'best' colors on a per-image basis, and dithers with
  242.         those.
  243.  
  244.         Advantages:  The -slow24  algorithm    often  produces  better
  245.         looking pictures.
  246.  
  247.         Disadvantages:  The  -slow24 algorithm is about half the speed
  248.         of the default algorithm.    Also, since the colors are chosen
  249.         on a per-image basis, it  can't  be  used  to display multiple
  250.         images  simultaneously,  as each image will  almost  certainly
  251.         want a different set of 256 colors.    The  default algorithm,
  252.         however, uses the same exact colors for all  images, so it can
  253.         display  many  images  simultaneously,  without running out of
  254.         colors.   Also,  the  -slow24  algorithm occasionally produces
  255.         worse-looking   pictures  than    the    default    algorithm,
  256.         particularly on displays with  very  few  colors.  The default
  257.         algorithm produces nice, dependably 'okay' pictures.
  258.  
  259.         -noqcheck  (Resource name: noqcheck  boolean)
  260.         Turns off a 'quick check'  that  is  normally made.  Normally,
  261.         before  running  either  of  the 24-bit  to  8-bit  conversion
  262.         algorithms, XV  determines whether the picture to be displayed
  263.         has more than  256  unique  colors  in  it.    If  the picture
  264.         doesn't, it will treat  the  picture  as  an 8-bit colormapped
  265.         image (i.e., GIF), and won't  run  either  of  the  conversion
  266.         algorithms.
  267.  
  268.         Advantages:    The  pictures  will  be displayed  'perfectly',
  269.         whereas  if  they  went  through  either  of  the   conversion
  270.         algorithms, they'd be dithered.
  271.  
  272.         Disadvantages:  Often uses a lot of colors, which  limits  the
  273.         ability  to  view  multiple images at once.  (See the  -slow24
  274.         option above for further info about color sharing.)
  275.  
  276. 3 Root_Window_Options
  277.         XV has the ability to display images on  the root window of an
  278.     X  display,  rather  than  opening  its  own  window (the  default
  279.     behavior).    When using the root window, the program is  somewhat
  280.     limited, because  the  program  cannot  receive  input events (key
  281.     press and mouse  clicks)  from  the root window.  As a result, you
  282.     cannot track pixel values,  or  crop,  nor  can  you  use keyboard
  283.     commands while the mouse is in the root window.
  284.  
  285.         -root  (Resource name:  <none>)
  286.         Directs  XV  to  display images in the root window, instead of
  287.         opening its  own  window.    Exactly  how  the  images will be
  288.         displayed in the  root  window is determined by the setting of
  289.         the -rmode option.
  290.  
  291.         -rmode  mode  (Resource name: rootMode  integer)
  292.         Determines how images are  to be displayed on the root window,
  293.         when -root has been specified.   You can find the current list
  294.         of 'modes' by using a mode  value  of '-1'.  XV will complain,
  295.         and show a list of valid modes.    The  current list at of the
  296.         time of this writing is:
  297.  
  298.             0:      tiling
  299.             1:      integer tiling
  300.             2:      mirrored tiling
  301.             3:      integer mirrored tiling
  302.             4:      centered tiling
  303.             5:      centered on a solid background
  304.             6:      centered on a 'warp' background
  305.             7:      centered on a 'brick' background
  306.  
  307.         The  default mode is '0'.  See ``Section  3.5:    The  Display
  308.         Modes Menu'' for a description of the different display modes.
  309.  
  310.         -rfg  color  (Resource name: rootForeground  string)
  311.         Sets the 'foreground' color used in some of the  root  display
  312.         modes.
  313.  
  314.         -rbg  color  (Resource name: rootBackground  string)
  315.         Sets  the 'background' color used in some of the root  display
  316.         modes.
  317.  
  318.         -max  (Resource name: <none>)
  319.         Makes  XV  automatically stretch the image to the full size of
  320.         the screen.  This is mostly useful when you want XV to display
  321.         a background.   While  you  could  just  as  well  specify the
  322.         dimensions of your display ('-geom 1152x900' for example), the
  323.         -max option is display-independent.  If you suddenly decide to
  324.         start working on a 1280x1024 display  (ferinstance)  the  same
  325.         command will still work.  Note:   If you specify -max when you
  326.         aren't using -root, the behavior is slightly different.    The
  327.         image will be made as large as possible while still preserving
  328.         the normal aspect ratio.
  329.  
  330.         -maxpect  (Resource name: <none>)
  331.         Makes  the  image  as  large  as possible while preserving the
  332.         aspect ratio.
  333.  
  334.         -quit  (Resource name: <none>)
  335.         Makes  XV display the (first) specified file and exit, without
  336.         any user  intervention.    Since  images displayed on the root
  337.         window remain there  until  explicitly  cleared,  this is very
  338.         useful for having XV  display  background  images  on the root
  339.         window in some sort of start-up script.  Needless to say, this
  340.         is only useful if you are using -root.
  341.  
  342.         -clear  (Resource name: <none>)
  343.         Clears the root window of any extraneous XV images.  Note:  it
  344.         is  not  necessary  to  do an 'xv  -clear'  before  displaying
  345.         another  picture  in  the root window.  XV  will  detect  that
  346.         there's  an  old  image  in the root window and  automatically
  347.         clear it out (and free the associated colors).
  348.  
  349. 3 Window_Options
  350.         XV currently  consists  of three main windows, plus one window
  351.     for the actual  image.    These  three  windows  (the  xv controls
  352.     window, the xv info window, and the xv color editor window) may be
  353.     automatically mapped and positioned when the program starts.
  354.  
  355.         -cmap  (Resource name: ctrlMap  boolean)
  356.         Maps the xv controls window.
  357.  
  358.         -cgeom  geom  (Resource name: ctrlGeometry  string)
  359.         Sets  the  initial geometry of the xv controls window.   Note:
  360.         only the position information is used.  The window is of fixed
  361.         size.
  362.  
  363.         -imap  (Resource name: infoMap  boolean)
  364.         Maps the xv info window.
  365.  
  366.         -igeom  geom  (Resource name: infoGeomet  string)
  367.         Sets  the initial geometry of the xv info window.  Note:  only
  368.         the position  information  is  used.    The window is of fixed
  369.         size.
  370.  
  371.         -cemap  (Resource name: ceditMap  boolean)
  372.         Maps the xv color editor window.
  373.  
  374.         -cegeom  geom  (Resource name: ceditGeometry  string)
  375.         Sets the initial  geometry  of  the  xv  color  editor window.
  376.         Note:  only the  position  information is used.  The window is
  377.         of fixed size.
  378.  
  379.         -nopos  (Resource name: nopos  boolean)
  380.         Turns off the 'default' positioning of the various XV windows.
  381.         Every time you open a window,  you  will  be asked to position
  382.         it.  (Assuming your window manager asks you such things.  mwm,
  383.         for instance doesn't seem to ask.)
  384.  
  385. 3 Miscellaneous_Options
  386.         -mono  (Resource name: mono  boolean)
  387.         Forces the image to be displayed as a greyscale.  This is most
  388.         useful when you are using certain greyscale X displays.  While
  389.         XV  attempts  to  determine  if  it's  running  on a greyscale
  390.         display,  many  X  displays  lie,  and claim to be able to  do
  391.         color.  (This is often because they have color graphics boards
  392.         hooked up to  b/w  monitors.   The computer, of course, has no
  393.         way of knowing what  type  of  monitor  is attached.) On these
  394.         displays, if you don't specify  -mono,  what you will see is a
  395.         greyscale  representation of one of the  RGB  outputs  of  the
  396.         system.   (For example, you'll see the  'red'  output  on  our
  397.         greyscale Sun 3/60s.) The -mono option corrects this behavior.
  398.  
  399.         -white  color  (Resource name: white  string)
  400.         Specifies  the  'white'  color  used when the picture  is  b/w
  401.         stippled.  (When '-ncols 0' has been specified.)
  402.  
  403.         -black  color  (Resource name: black  string)
  404.         Specifies  the  'black'  color  used  when the picture is  b/w
  405.         stippled.  (When '-ncols 0' has been specified.)
  406.  
  407.         Try  something  like:    'xv  -ncols  0  -bl  red  -wh  yellow
  408.         <filename>' for  some interesting, late-'60s-style psychodelia
  409.         effects.
  410.  
  411.         -wait  secs  (Resource name: <none>)
  412.         Turns on a  'slide-show'  feature.    Normally, if you specify
  413.         multiple input files, XV  will display the first one, and wait
  414.         for you to give the  Next  command  (or  whatever).  The -wait
  415.         option makes XV wait the specified number of seconds, and then
  416.         go on to the next picture, without any user intervention.  The
  417.         program  still  accepts commands, so it's possible to  'abort'
  418.         the current picture without waiting the full specified time by
  419.         using the Next command.
  420.  
  421.         -wloop  (Resource name: <none>)
  422.         Normally,  when running a slide-show with the -wait option, XV
  423.         will  terminate  after displaying the last image.  If you also
  424.         specify the  -wloop  option, the program will loop back to the
  425.         first image and  continue the slide-show until the user issues
  426.         the Quit command.
  427.  
  428.         -rgb  (Resource name: hsvMode boolean)
  429.         Specifies that, by default,  the colormap editing dials in the
  430.         xv color editor window should  be  in  RGB  mode.  This is the
  431.         normal default behavior.
  432.  
  433.         -hsv  (Resource name: hsvMode  boolean)
  434.         Specifies that, by default, the colormap  editing dials in the
  435.         xv color editor window should be in HSV mode.
  436.  
  437.         -dither  (Resouce name: autoDither  boolean)
  438.         When  specified,  tells  XV  to automatically issue  a  Dither
  439.         command  whenever  an  image  is first displayed.   Useful  on
  440.         displays  with  limited  color  capabilities  (4-bit and 6-bit
  441.         displays.)
  442.  
  443.         -smooth  (Resource name:  autoSmooth  boolean)
  444.         When specified,  tells  XV  to  automatically  issue  a Smooth
  445.         command whenever an  image is first displayed.  This is useful
  446.         when you are using  one  of  the image sizing options (such as
  447.         '-expand' or '-max').
  448.  
  449.         -visual  vistype  (Resource name: visual  string)
  450.         Normally, XV uses the default  visual model provided by your X
  451.         server.    You can override this  by  explicitly  selecting  a
  452.         visual  to  use.    Valid types are  StaticGray,  StaticColor,
  453.         TrueColor,  GrayScale,  PseudoColor, and DirectColor.  Not all
  454.         of these are necessarily provided on any given X display.  Run
  455.         xdpyinfo on your  display  to  find  out what visual types are
  456.         supported.
  457.  
  458.         -cursor  curs  (Resource name: cursor  integer)
  459.         Specifies an alternate cursor  to  use  in  the  image  window
  460.         (instead  of the normal 'cross'  cursor).    curs  values  are
  461.         obtained by finding the character number  of a cursor you like
  462.         in the 'cursor' font.  (Run 'xfd  -fn  cursor'  to display the
  463.         cursor font.) For example, a curs value of '56' corresponds to
  464.         the (singularly useless) 'Gumby' cursor.
  465.  
  466.         -keeparound  (Resource name: keepAround  boolean)
  467.         By  default  if you Delete the last file in  the  XV  controls
  468.         list,  the  program will automatically exit, as a convenience.
  469.         If you find this an inconvenience.
  470.  
  471.         -2xlimit  (Resource name: 2xlimit  boolean)
  472.         By default,  XV  prevents  the  image window from ever getting
  473.         larger than the  screen.    Unfortunately, because of this, if
  474.         you load an image  that  is larger than your screen, the image
  475.         will be shrunk until it  fits on your screen.  Some folks find
  476.         this  undesirable  behavior.  Specifying the  -2xlimit  option
  477.         doubles the size limitations.  The image  window  will be kept
  478.         from  getting  larger  than 2x the width and  height  of  your
  479.         screen.
  480.  
  481.         Just    in    case  you're  wondering  why  there's  any  size
  482.         limitations:  it's fairly easy to accidentally ask for a  huge
  483.         image  to  be generated.  Simply crop a section of the  image,
  484.         zoom  so  you  can  see the individual pixels, and uncrop.  If
  485.         there were  no  size  limitations,  the  (expanded many times)
  486.         image could be  huge,  and  might crash your X server.  At the
  487.         very least, it would  take  a  long period of time, and freeze
  488.         your  X  server during part  of  it.    Generally  undesirable
  489.         behavior.
  490.  
  491.         -DEBUG  level   (Resource name: <none>)
  492.         Turns on some debugging information.  You shouldn't need this.
  493.         If everything worked perfectly, I wouldn't need  this  either.
  494.         Specifying '-' all by itself tells XV to  take  its input from
  495.         stdin, rather then from a file.  This lets  you  put XV on the
  496.         end of a Un*x pipe.
  497.  
  498. 2 Limitations
  499.         XV will NOT work on displays that aren't 1-, 4-, 6-,  8-,  16-
  500.     24-, or  32-bits  deep.    Luckily, that should still cover nearly
  501.     every display out  there.  It may not work on certain 6- or 24-bit
  502.     displays.
  503.  
  504.         It also only displays  the  first image in GIF files that have
  505.     multiple images in them.
  506.  
  507.         As for PM pictures, this  program  only displays 1-plane PM_I
  508.     pictures, or 1-, 3-, or 4-plane PM_C pictures.
  509.  
  510. 2 Authors
  511.         John Bradley  -  bradley@cis.upenn.edu
  512.  
  513.         GIF reading code  based  on gif2ras.c, by Patrick J.  Naughton
  514.     (naughton@wind.sun.com)
  515.  
  516.         GIF writing code essentially  unchanged  from  code written by
  517.     Michael Maudlin (mlm@cs.cmu.edu).
  518.  
  519.         SUN Rasterfile i/o code written by Dave Heath (heath@cs.jhu.edu)
  520.  
  521.         JPEG interface code written by Markus Baur
  522.         (s_baur@iravcl.ira.uka.de)
  523.  
  524.         JPEG i/o code provided by the Independent JPEG Group.
  525.  
  526.         VMS port by David Jones (jonesd@kcgl1.eng.ohio-state.edu),
  527.         and Rick Dyson (Dyson@IowaSP.Physics.UIowa.EDU).
  528.  
  529. 1 BGGEN
  530.         Generates colored backgrounds on X11 displays.    BGGEN  is  a
  531.     program  that  generates  a width-pixel wide by  size-pixels  high
  532.     vertical stripe.  The top of the stripe  is  in  color (r1,g1,b1),
  533.     and the bottom of the stripe is in color (rn,gn,bn).  Intermediate
  534.     colors are interpolated between these colors.  If you specify more
  535.     than 2 colors, the stripe passes through all the specified colors,
  536.     in the order specified.
  537.  
  538.         The '-b'  option  specifies  the number of significant bits in
  539.     the (output) color specifications.  It must range between 1 and 8,
  540.     inclusive.  Use values  less  than  8 (the default) to limit color
  541.     use by increasing the color granularity.
  542.  
  543.         Values for 'r', 'g', and  'b'  should range between 0 and 255,
  544.     inclusive.  0 means 'off', and 255 means 'fully on'.
  545.  
  546.         BGGEN doesn't actually affect your background directly.  BGGEN
  547.     merely  generates  a small PPM (Portable Pixmap  Format)  datafile
  548.     that XV can read and display.
  549.  
  550.         To use BGGEN , you should pipe its  output into an XV command,
  551.     such as:  "xv -root -quit -slow24"
  552.  
  553.         The default 'size' is 1024 pixels, which should be  as tall as
  554.     your  display.   If your display is taller than that,  you  should
  555.     specify  its  actual  height,  otherwise  you  will  get a bizarre
  556.     repeating effect,  that  you  probably didn't want.  Note:  If you
  557.     specify small values of '-s', you can get some neat effects.
  558.  
  559.         The '-w' argument has been added to improve the performance of
  560.     various stippling algorithms (as in XV).  More information to work
  561.     with, and such.  Try  using  '-w 16' on these command lines to see
  562.     what is meant.
  563.  
  564.     Execution format:
  565.         BGGEN [-w width] [-s size] [-b bits]
  566.               r1 g1 b1 [r2 g2 b2 ... rn gn bn]
  567.  
  568. 2 Examples
  569.  
  570.     Light Blue to Dark Blue:
  571.         BGGEN 100 100 255  50 50 150  | xv -ro -q -sl "-"
  572.     RGB Rainbow:
  573.         BGGEN 0 0 255  0 255 0  255 0 0 | xv -ro -q -sl "-"
  574.     Green Cylinders:
  575.         BGGEN 0 0 0  0 255 0  0 0 0 -s 128 | xv -ro -q -sl "-"
  576.     Blue to Magenta:
  577.         BGGEN 0 0 255  200 0 100 | xv -ro -q -sl "-"
  578.     Full Rainbow:
  579.         BGGEN 0 0 255  0 255 255  0 255 0  255 255 0  255 0 0 
  580.             | xv -ro -q -sl "-"
  581.     Repeating Rainbow:
  582.         BGGEN 0 0 255 0 255 255 0 255 0 255 255 0 255 0 0 
  583.               255 0 255 0 0 255 -s 256 | xv -ro -q -sl "-"
  584.  
  585. 2 Bugs
  586.         It'd probably be nice if the  program  used  some  X  calls to
  587.     determine screen size.  It'd also probably  be nice if the program
  588.     could take colors by 'name', and also by hexadecimal value.
  589.  
  590. 2 Author
  591.         John Bradley  -  bradley@cis.upenn.edu
  592.