home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega A/V
/
mega_av.zip
/
mega_av
/
GRAPHUTL
/
PBMPLUS.ZIP
/
PPMTOXPM.MAN
< prev
next >
Wrap
Text File
|
1991-08-11
|
2KB
|
67 lines
ppmtoxpm(1) Unix Programmer's Manual ppmtoxpm(1)
NNNAAAMMMEEE
ppmtoxpm - convert a portable pixmap into an X11 pixmap
SSSYYYNNNOOOPPPSSSIIISSS
ppppppmmmtttoooxxxpppmmm [-nnnaaammmeee _x_p_m_n_a_m_e] [_p_p_m_f_i_l_e]
DDDEEESSSCCCRRRIIIPPPTTTIIIOOONNN
Reads a portable pixmap as input. Produces X11 pixmap (XPM) as output.
If the program was compiled with an rgb database specified, and a RGB
value from the ppm input matches a RGB value from the database, then the
corresponding color name mnemonic is printed in the XPM's colormap. If
no rgb database was compiled in, or if the RGB values don't match, then
the color will be printed with the #RGB, #RRGGBB, #RRRGGGBBB, or
#RRRRGGGGBBBB hexadecimal format.
OOOPPPTTTIIIOOONNNSSS
---nnnaaammmeee
Allows you 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 ---nnnaaammmeee is
not specified and no ppmfile is specified (i.e. piped input), the
prefix string will default to the string "noname".
All flags can be abbreviated to their shortest unique prefix.
EEEXXXAAAMMMPPPLLLEEE
To convert the file "dot" (found in /usr/include/X11/bitmaps), from xbm
to xpm one could specify
xbmtopbm dot | ppmtoxpm -name dot
BBBUUUGGGSSS
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.
SSSEEEEEE AAALLLSSSOOO
xpmtoppm(1), ppm(5)
AAAUUUTTTHHHOOORRR
Copyright (C) 1990 by Mark W. Snitily.
26 June 1990 1