home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega A/V
/
mega_av.zip
/
mega_av
/
GRAPHUTL
/
PBMPLUS.ZIP
/
PPMTOICR.MAN
< prev
next >
Wrap
Text File
|
1991-08-11
|
5KB
|
133 lines
ppmtoicr(1) Unix Programmer's Manual ppmtoicr(1)
NNNAAAMMMEEE
ppmtoicr - convert a portable pixmap into NCSA ICR format
SSSYYYNNNOOOPPPSSSIIISSS
ppppppmmmtttoooiiicccrrr [-wwwiiinnndddooowwwnnnaaammmeee _n_a_m_e] [-eeexxxpppaaannnddd _e_x_p_a_n_d] [-dddiiisssppplllaaayyy _d_i_s_p_l_a_y] [-rrrllleee]
[_p_p_m_f_i_l_e]
DDDEEESSSCCCRRRIIIPPPTTTIIIOOONNN
Reads a portable pixmap file as input. Produces an NCSA Telnet
Interactive Color Raster graphic file as output. If _p_p_m_f_i_l_e is not
supplied, _p_p_m_t_o_i_c_r will read from standard input.
Interactive Color Raster (ICR) is a protocol for displaying raster
graphics on workstation screens. The protocol is implemented in NCSA
Telnet for the Macintosh version 2.3. The ICR protocol shares
characteristics of the Tektronix graphics terminal emulation protocol.
For example, escape sequences are used to control the display.
_p_p_m_t_o_i_c_r will output the appropriate sequences to create a window of the
dimensions of the input pixmap, create a colormap of up to 256 colors on
the display, then load the picture data into the window.
Note that there is no icrtoppm tool - this transformation is one way.
OOOPPPTTTIIIOOONNNSSS
---wwwiiinnndddooowwwnnnaaammmeee _n_a_m_e
Output will be displayed in _n_a_m_e (Default is to use _p_p_m_f_i_l_e
or "untitled" if standard input is read.)
---eeexxxpppaaannnddd _e_x_p_a_n_d
Output will be expanded on display by factor _e_x_p_a_n_d (For
example, a value of 2 will cause four pixels to be
displayed for every input pixel.)
---dddiiisssppplllaaayyy _d_i_s_p_l_a_y
Output will be displayed on screen numbered _d_i_s_p_l_a_y
---rrrllleee Use run-length encoded format for display. (This will
nearly always result in a quicker display, but may skew the
colormap.)
EEEXXXAAAMMMPPPLLLEEESSS
To display a _p_p_m file using the protocol:
ppmtoicr ppmfile
This will create a window named _p_p_m_f_i_l_e on the display with the correct
dimensions for _p_p_m_f_i_l_e, create and download a colormap of up to 256
colors, and download the picture into the window. The same effect may be
achieved by the following sequence:
ppmtoicr ppmfile > filename
cat filename
To display a GIF file using the protocol in a window titled after the
input file, zoom the displayed image by a factor of 2, and run-length
encode the data:
giftoppm giffile | ppmtoicr -w giffile -r -e 2
_p_p_m_t_o_i_c_r will also read _p_b_m and _p_g_m files. The full range of pbm
30 July 1990 1
ppmtoicr(1) Unix Programmer's Manual ppmtoicr(1)
manipulation routines may be applied to graphics for display using
_p_p_m_t_o_i_c_r. Thus, a monochrome Sun raster file may be viewed in 5 color
grayscale by the following sequence:
pnmtorast rasterfile | pnmscale .5 | ppmtoicr
BBBUUUGGGSSS
The protocol uses frequent _f_f_l_u_s_h calls to speed up display. If the
output is saved to a file for later display via _c_a_t, drawing will be much
slower. In either case, increasing the Blocksize limit on the display
will speed up transmission substantially.
SSSEEEEEE AAALLLSSSOOO
ppppppmmm(((555)))
_N_C_S_A _T_e_l_n_e_t _f_o_r _t_h_e _M_a_c_i_n_t_o_s_h, University of Illinois at Urbana-Champaign
(1989)
AAAUUUTTTHHHOOORRR
Copyright (C) 1990 by Kanthan Pillay (svpillay@Princeton.EDU), Princeton
University Computing and Information Technology.
30 July 1990 2