| 1 |
\ |
| 2 |
.\" This man page was generated by the Netpbm tool 'makeman' from HTML source. |
| 3 |
.\" Do not hand-hack it! If you have bug fixes or improvements, please find |
| 4 |
.\" the corresponding HTML page on the Netpbm website, generate a patch |
| 5 |
.\" against that, and send it to the Netpbm maintainer. |
| 6 |
.TH "Rasttopnm User Manual" 1 "16 August 2011" "netpbm documentation" |
| 7 |
|
| 8 |
.SH NAME |
| 9 |
rasttopnm - convert a Sun rasterfile to a PNM image |
| 10 |
|
| 11 |
.UN synopsis |
| 12 |
.SH SYNOPSIS |
| 13 |
|
| 14 |
\fBrasttopnm\fP |
| 15 |
|
| 16 |
[\fB-index\fP] |
| 17 |
|
| 18 |
[\fIrastfile\fP] |
| 19 |
|
| 20 |
.UN description |
| 21 |
.SH DESCRIPTION |
| 22 |
.PP |
| 23 |
This program is part of |
| 24 |
.BR "Netpbm" (1)\c |
| 25 |
\&. |
| 26 |
.PP |
| 27 |
\fBrasttopnm\fP reads a Sun rasterfile as input and produces a PNM |
| 28 |
image as output. The type of the output file depends on the input |
| 29 |
file - if it's black and white, \fBrasttopnm\fP writes a PBM image. |
| 30 |
If it's grayscale, \fBrasttopnm\fP writes a PGM. If it's color, |
| 31 |
\fBrasttopnm\fP writes a PPM. The program tells you which type it is |
| 32 |
generating. |
| 33 |
|
| 34 |
.UN options |
| 35 |
.SH OPTIONS |
| 36 |
.PP |
| 37 |
In addition to the options common to all programs based on libnetpbm |
| 38 |
(most notably \fB-quiet\fP, see |
| 39 |
.UR index.html#commonoptions |
| 40 |
Common Options |
| 41 |
.UE |
| 42 |
\&), \fBrasttopnm\fP recognizes the following |
| 43 |
command line option: |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
.TP |
| 48 |
\fB-index\fP |
| 49 |
This odd option tells \fBrasttopnm\fP to use the color map indices in |
| 50 |
the raster as if they are the color values. |
| 51 |
.sp |
| 52 |
In a colormapped Sun rasterfile, the header of the file contains a color |
| 53 |
map, associating each unique color that occurs in the file with an index |
| 54 |
number. The raster portion of the file then represents the color of a pixel |
| 55 |
with one of those colormap indices. |
| 56 |
.sp |
| 57 |
This option has found use as follows: take a regular grayscale Sun |
| 58 |
rasterfile in which all the grayscale value are represented, so the colormap |
| 59 |
indices are identical to the color values. Modify its color map so as to |
| 60 |
alter the colors in the image, in particular to equalize the colors. With |
| 61 |
that modified rasterfile as input, \fBrasttopnm\fP without \fB-index\fP |
| 62 |
produces the modified image. But with \fB-index\fP, it produces the original |
| 63 |
unmodified image. |
| 64 |
.sp |
| 65 |
This option was new in Netpbm 10.56 (September 2011). |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
.UN seealso |
| 70 |
.SH SEE ALSO |
| 71 |
.BR "pnmtorast" (1)\c |
| 72 |
\&, |
| 73 |
.BR "pnm" (1)\c |
| 74 |
\& |
| 75 |
|
| 76 |
.UN author |
| 77 |
.SH AUTHOR |
| 78 |
|
| 79 |
Copyright (C) 1989, 1991 by Jef Poskanzer. |
| 80 |
.SH DOCUMENT SOURCE |
| 81 |
This manual page was generated by the Netpbm tool 'makeman' from HTML |
| 82 |
source. The master documentation is at |
| 83 |
.IP |
| 84 |
.B http://netpbm.sourceforge.net/doc/rasttopnm.html |
| 85 |
.PP |