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 / rawtoppm.1 < prev    next >
Text File  |  1996-11-18  |  2KB  |  70 lines

  1. .TH rawtoppm 1 "06 February 1991"
  2. .IX rawtoppm
  3. .SH NAME
  4. rawtoppm - convert raw RGB bytes into a portable pixmap
  5. .SH SYNOPSIS
  6. .B rawtoppm
  7. .RB [ -headerskip
  8. .IR N ]
  9. .RB [ -rowskip
  10. .IR N ]
  11. .RB [ -rgb | -rbg | -grb
  12. .RB | -gbr | -brg | -bgr
  13. .RB ]
  14. .RB [ -interpixel | -interrow ]
  15. .I width height
  16. .RI [ imagedata ]
  17. .SH DESCRIPTION
  18. Reads raw RGB bytes as input.
  19. .IX "raw RGB"
  20. Produces a portable pixmap as output.
  21. The input file is just RGB bytes.
  22. You have to specify the width and height on the command line,
  23. since the program obviously can't get them from the file.
  24. The maxval is assumed to be 255.
  25. If the resulting image is upside down, run it through
  26. .B "pnmflip -tb" .
  27. .IX pnmflip
  28. .SH OPTIONS
  29. .TP
  30. .B -headerskip
  31. If the file has a header, you can use this flag to
  32. skip over it.
  33. .TP
  34. .B -rowskip
  35. If there is padding at the ends of the rows, you can skip it with this flag.
  36. .TP
  37. .B -rgb -rbg -grb -gbr -brg -bgr
  38. These flags let you specify alternate color orders.  The default is
  39. .BR -rgb .
  40. .TP
  41. .B -interpixel -interrow
  42. These flags let you specify how the colors are interleaved.
  43. The default is
  44. .BR -interpixel ,
  45. meaning interleaved by pixel.
  46. A byte of red, a byte of green, and a byte
  47. of blue, or whatever color order you specified.
  48. .B -interrow
  49. means interleaved by row - a row of red, a row of green, a row of blue,
  50. assuming standard rgb color order.
  51. An
  52. .B -interplane
  53. flag  - all the red pixels, then all the green, then all the blue - would
  54. be an obvious extension, but is not implemented.
  55. You could get the same effect by splitting the file into three parts
  56. (perhaps using
  57. .IR dd ),
  58. turning each part into a PGM file with rawtopgm, and then combining them
  59. with rgb3toppm.
  60. .SH "SEE ALSO"
  61. ppm(5), rawtopgm(1), rgb3toppm(1), pnmflip(1)
  62. .SH AUTHOR
  63. Copyright (C) 1991 by Jef Poskanzer.
  64. .\" Permission to use, copy, modify, and distribute this software and its
  65. .\" documentation for any purpose and without fee is hereby granted, provided
  66. .\" that the above copyright notice appear in all copies and that both that
  67. .\" copyright notice and this permission notice appear in supporting
  68. .\" documentation.  This software is provided "as is" without express or
  69. .\" implied warranty.
  70.