ppmtoxpm man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

ppmtoxpm(1)							   ppmtoxpm(1)

       ppmtoxpm - convert a portable pixmap into an X11 pixmap

       ppmtoxpm [-name <xpmname>] [-rgb <rgb-textfile>] [<ppmfile>]

       Reads  a portable pixmap as input.  Produces X11 pixmap	(version 3) as
       output which can be loaded directly by the XPM library.

       The -nameoption allows one  to  specify	the  prefix  string  which  is
       printed in the resulting XPM output.  If not specified, will default to
       the filename (without extension) of the <ppmfile> argument.  If -nameis
       not  specified  and  <ppmfile> is not specified (i.e. piped input), the
       prefix string will default to the string "noname".

       The -rgboption allows one to specify an	X11  rgb  text	file  for  the
       lookup  of  color  name mnemonics.  This rgb text file is typically the
       /usr/lib/X11/rgb.txt of the MIT X11 distribution, but  any  file	 using
       the  same  format may be used.  When specified and a RGB value from the
       ppm input matches a RGB value from the <rgb-textfile>, then the	corre‐
       sponding	 color	name  mnemonic	is  printed in the XPM's colormap.  If
       -rgbis not specified, or if the RGB values don't match, then the	 color
       will  be	 printed  with the #RGB, #RRGGBB, #RRRGGGBBB, or #RRRRGGGGBBBB
       hexadecimal format.

       All flags can be abbreviated to their shortest unique prefix.

       For example, to convert the file "dot" (found in	 /usr/include/X11/bit‐
       maps), from xbm to xpm one could specify

	      xbmtopbm dot | ppmtoxpm -name dot

       or, with a rgb text file (in the local directory)

	      xbmtopbm dot | ppmtoxpm -name dot -rgb rgb.txt

       An  option to match the closest (rather than exact) color name mnemonic
       from the rgb text would be a desirable enhancement.

       Truncation of the least significant bits of a RGB value may  result  in
       nonexact matches when performing color name mnemonic lookups.

       XPM Manual by Arnaud Le Hors lehors@mirsa.inria.fr

       Copyright (C) 1990 by Mark W. Snitily.

       Permission  to  use, copy, modify, and distribute this software and its
       documentation for any purpose and without fee is hereby	granted,  pro‐
       vided  that  the	 above	copyright notice appear in all copies and that
       both that copyright notice and this permission notice  appear  in  sup‐
       porting	documentation.	 This  software	 is  provided  "as is" without
       express or implied warranty.

       This tool was developed for Schlumberger	 Technologies,	ATE  Division,
       and  with  their	 permission is being made available to the public with
       the above copyright notice and permission notice.

       Upgraded to XPM2 by
	  Paul Breslaw, Mecasoft SA, Zurich, Switzerland (paul@mecazh.uu.ch)
	  Thu Nov  8 16:01:17 1990

       Upgraded to XPM version 3 by
	  Arnaud Le Hors (lehors@mirsa.inria.fr)
	  Tue Apr 9 1991

				Tue Apr 9 1991			   ppmtoxpm(1)

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net