1Rasttopnm User Manual(0)                              Rasttopnm User Manual(0)
2
3
4

NAME

6       rasttopnm - convert a Sun rasterfile to a PNM image
7
8

SYNOPSIS

10       rasttopnm
11
12       [-index]
13
14       [rastfile]
15
16

DESCRIPTION

18       This program is part of Netpbm(1).
19
20       rasttopnm  reads  a Sun rasterfile as input and produces a PNM image as
21       output.  The type of the output file depends on the  input  file  -  if
22       it's black and white, rasttopnm writes a PBM image.  If it's grayscale,
23       rasttopnm writes a PGM.  If it's color, rasttopnm writes  a  PPM.   The
24       program tells you which type it is generating.
25
26

OPTIONS

28       In  addition  to  the options common to all programs based on libnetpbm
29       (most notably -quiet, see
30        Common Options ⟨index.html#commonoptions⟩ ), rasttopnm recognizes  the
31       following command line option:
32
33
34
35
36       -index This  odd option tells rasttopnm to use the color map indices in
37              the raster as if they are the color values.
38
39              In a colormapped Sun rasterfile, the header of the file contains
40              a  color  map,  associating each unique color that occurs in the
41              file with an index number.  The raster portion of the file  then
42              represents  the  color  of  a  pixel  with one of those colormap
43              indices.
44
45              This option has found use as follows: take a  regular  grayscale
46              Sun rasterfile in which all the grayscale value are represented,
47              so the colormap indices are identical to the color values.  Mod‐
48              ify  its  color  map  so as to alter the colors in the image, in
49              particular to equalize the colors.  With that  modified  raster‐
50              file  as  input,  rasttopnm without -index produces the modified
51              image.  But with -index, it  produces  the  original  unmodified
52              image.
53
54              This option was new in Netpbm 10.56 (September 2011).
55
56
57
58

SEE ALSO

60       pnmtorast(1), pnm(1)
61
62

AUTHOR

64       Copyright (C) 1989, 1991 by Jef Poskanzer.
65

DOCUMENT SOURCE

67       This  manual  page was generated by the Netpbm tool 'makeman' from HTML
68       source.  The master documentation is at
69
70              http://netpbm.sourceforge.net/doc/rasttopnm.html
71
72netpbm documentation            16 August 2011        Rasttopnm User Manual(0)
Impressum