home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / netpbm_docs.lzh / NETPBM / DOCS / ppmchange.1 < prev    next >
Text File  |  1996-11-18  |  1KB  |  48 lines

  1. .TH ppmchange 1 "3 December 1993"
  2. .IX ppmchange
  3. .SH NAME
  4. ppmchange - change all pixels of one color to another in a portable pixmap
  5. .SH SYNOPSIS
  6. .B ppmchange
  7. .I oldcolor newcolor [...]
  8. .RI [ ppmfile ]
  9. .SH DESCRIPTION
  10. Reads a portable pixmap as input.
  11. Changes all pixels of 
  12. .I oldcolor 
  13. to 
  14. .IR newcolor , 
  15. leaving all others unchanged.
  16. Up to 256 colors may be replaced by specifying couples of colors on
  17. the command line.  
  18. .PP
  19. The colors can be specified in five ways:
  20. .IX "specifying colors"
  21. .TP 
  22. o
  23. A name, assuming
  24. that a pointer to an X11-style color names file was compiled in.
  25. .TP 
  26. o
  27. An X11-style hexadecimal specifier: rgb:r/g/b, where r g and b are
  28. each 1- to 4-digit hexadecimal numbers.
  29. .TP 
  30. o
  31. An X11-style decimal specifier: rgbi:r/g/b, where r g and b are
  32. floating point numbers between 0 and 1.
  33. .TP 
  34. o
  35. For backwards compatibility, an old-X11-style hexadecimal
  36. number: #rgb, #rrggbb, #rrrgggbbb, or #rrrrggggbbbb.
  37. .TP 
  38. o
  39. For backwards compatibility, a triplet of numbers
  40. separated by commas: r,g,b, where r g and b are
  41. floating point numbers between 0 and 1.
  42. (This style was added before MIT came up with the similar rgbi style.)
  43. .SH "SEE ALSO"
  44. pgmtoppm(1), ppm(5)
  45. .SH AUTHOR
  46. Wilson H. Bent. Jr. (whb@usc.edu)
  47. with modifications by Alberto Accomazzi (alberto@cfa.harvard.edu)
  48.