about summary refs log tree commit diff
path: root/rasttopnm.html
blob: 3b8feb9ca2af6e7db7f2c3292bee5d650aaface9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Rasttopnm User Manual</TITLE></HEAD>
<BODY>
<H1>rasttopnm</H1>
Updated: 16 August 2011
<BR>
<A HREF="#index">Table Of Contents</A>
<H2>NAME</H2>

rasttopnm - convert a Sun rasterfile to a PNM image

<H2 id="synopsis">SYNOPSIS</H2>

<B>rasttopnm</B>

[<b>-index</b>]

[<I>rastfile</I>]

<H2 id="description">DESCRIPTION</H2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<p><b>rasttopnm</b> reads a Sun rasterfile as input and produces a PNM
image as output.  The type of the output file depends on the input
file - if it's black and white, <b>rasttopnm</b> writes a PBM image.
If it's grayscale, <b>rasttopnm</b> writes a PGM.  If it's color,
<b>rasttopnm</b> writes a PPM.  The program tells you which type it is
generating.

<h2 id="options">OPTIONS</h2>

<dl>
  
<dt><b>-index</b>

<dd>This odd option tells <b>rasttopnm</b> to use the color map indices in
the raster as if they are the color values.

<p>In a colormapped Sun rasterfile, the header of the file contains a color
map, associating each unique color that occurs in the file with an index
number.  The raster portion of the file then represents the color of a pixel
with one of those colormap indices.

<p>This option has found use as follows: take a regular grayscale Sun
rasterfile in which all the grayscale value are represented, so the colormap
indices are identical to the color values.  Modify its color map so as to
alter the colors in the image, in particular to equalize the colors.  With
that modified rasterfile as input, <b>rasttopnm</b> without <b>-index</b>
produces the modified image.  But with <b>-index</b>, it produces the original
unmodified image.

<p>This option was new in Netpbm 10.56 (September 2011).

</dl>

<H2 id="seealso">SEE ALSO</H2>

<A HREF="pnmtorast.html">pnmtorast</A>, 
<A HREF="pnm.html">pnm</A>

<H2 id="author">AUTHOR</H2>

Copyright (C) 1989, 1991 by Jef Poskanzer.

<HR>
<H2 id="index">Table Of Contents</H2>
<UL>
<LI><A HREF="#synopsys">SYNOPSIS</A>
<LI><A HREF="#description">DESCRIPTION</A>
<LI><A HREF="#seealso">SEE ALSO</A>
<LI><A HREF="#author">AUTHOR</A>
</UL>
</BODY>
</HTML>