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

NAME

6       ppmtoicr - convert a PPM image into NCSA ICR format
7
8

SYNOPSIS

10       ppmtoicr
11
12       [-windowname name]
13
14       [-expand expand]
15
16       [-display display]
17
18       [-rle]
19
20       [ppmfile]
21
22

DESCRIPTION

24       This program is part of Netpbm(1).
25
26       ppmtoicr  reads  a PPM file as input.  Produces an NCSA Telnet Interac‐
27       tive Color Raster graphic file as output.
28
29       If ppmfile is not supplied, ppmtoicr reads from Standard Input.
30
31       Interactive Color Raster (ICR) is  a  protocol  for  displaying  raster
32       graphics  on  workstation  screens. The protocol is implemented in NCSA
33       Telnet for the Macintosh version 2.3.  The ICR protocol shares  charac‐
34       teristics  of  the Tektronix graphics terminal emulation protocol.  For
35       example, escape sequences are used to control the display.
36
37       ppmtoicr will output the appropriate sequences to create  a  window  of
38       the  dimensions of the input image, create a colormap of up to 256 col‐
39       ors on the display, then load the picture data into the window.
40
41       Note that there is no icrtoppm tool - this transformation is one way.
42
43

OPTIONS

45       -windowname name
46              Output will be displayed in name (Default is to use  ppmfile  or
47              'untitled' if the input is from Standard Input).
48
49
50       -expand expand
51              Output  will  be expanded on display by factor expand (For exam‐
52              ple, a value of 2 will cause four pixels  to  be  displayed  for
53              every input pixel.)
54
55
56       -display display
57              Output will be displayed on screen numbered display
58
59
60       -rle   Use  run-length  encoded  format  for display. (This will nearly
61              always result in a quicker display, but may skew the colormap).
62
63
64
65
66

EXAMPLES

68       To display a PPM file named ppmfile using the protocol:
69
70           ppmtoicr ppmfile
71
72       This will create a window named ppmfile on the display with the correct
73       dimensions  for  ppmfile,  create  and download a colormap of up to 256
74       colors, and download the picture into the window.  You may achieve  the
75       same effect with the following sequence:
76
77           ppmtoicr ppmfile > filename
78           cat filename
79
80       To  display  a GIF file using the protocol in a window titled after the
81       input file, zoom the displayed image by a factor of 2,  and  run-length
82       encode the data:
83
84           giftopnm giffile | ppmtoicr -w giffile -r -e 2
85
86

LIMITATIONS

88       The  protocol uses frequent fflush() calls to speed up display.  If you
89       save the output to a file for later display via cat, ppmtoicr will draw
90       much  more  slowly.   In either case, increasing the blocksize limit on
91       the display will speed up transmission substantially.
92
93

SEE ALSO

95       ppm(1)
96
97       NCSA Telnet for the Macintosh, University of Illinois  at  Urbana-Cham‐
98       paign (1989)
99
100

AUTHOR

102       Copyright  (C) 1990 by Kanthan Pillay (svpillay@Princeton.EDU), Prince‐
103       ton University Computing and Information Technology.
104
105
106
107netpbm documentation             30 July 1990          Ppmtoicr User Manual(0)
Impressum