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       -index This  odd option tells rasttopnm to use the color map indices in
29              the raster as if they are the color values.
30
31              In a colormapped Sun rasterfile, the header of the file contains
32              a  color  map,  associating each unique color that occurs in the
33              file with an index number.  The raster portion of the file  then
34              represents  the  color  of  a  pixel  with one of those colormap
35              indices.
36
37              This option has found use as follows: take a  regular  grayscale
38              Sun rasterfile in which all the grayscale value are represented,
39              so the colormap indices are identical to the color values.  Mod‐
40              ify  its  color  map  so as to alter the colors in the image, in
41              particular to equalize the colors.  With that  modified  raster‐
42              file  as  input,  rasttopnm without -index produces the modified
43              image.  But with -index, it  produces  the  original  unmodified
44              image.
45
46              This option was new in Netpbm 10.56 (September 2011).
47
48
49
50

SEE ALSO

52       pnmtorast(1), pnm(1)
53
54

AUTHOR

56       Copyright (C) 1989, 1991 by Jef Poskanzer.
57

DOCUMENT SOURCE

59       This  manual  page was generated by the Netpbm tool 'makeman' from HTML
60       source.  The master documentation is at
61
62              http://netpbm.sourceforge.net/doc/rasttopnm.html
63
64netpbm documentation            16 August 2011        Rasttopnm User Manual(0)
Impressum