193 lines
4.1 KiB
HTML
193 lines
4.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of ppmtoicr</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>ppmtoicr</H1>
|
|
Section: User Commands (1)<BR>Updated: 30 July 1990<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="ixAAB"></A>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
ppmtoicr - convert a portable pixmap into NCSA ICR format
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>ppmtoicr</B>
|
|
|
|
[<B>-windowname</B>
|
|
|
|
<I>name</I>]
|
|
|
|
[<B>-expand</B>
|
|
|
|
<I>expand</I>]
|
|
|
|
[<B>-display</B>
|
|
|
|
<I>display</I>]
|
|
|
|
[<B>-rle</B>]
|
|
|
|
[<I>ppmfile</I>]
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
Reads a portable pixmap file as input.
|
|
Produces an NCSA Telnet Interactive Color Raster graphic file as output.
|
|
<A NAME="ixAAC"></A>
|
|
If
|
|
<I>ppmfile</I>
|
|
|
|
is not supplied,
|
|
<I>ppmtoicr</I>
|
|
|
|
will read from standard input.
|
|
<P>
|
|
|
|
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.
|
|
<A NAME="ixAAD"></A>
|
|
The ICR protocol shares
|
|
characteristics of the Tektronix graphics terminal emulation protocol.
|
|
<A NAME="ixAAE"></A>
|
|
For example, escape sequences are used to control the display.
|
|
<P>
|
|
|
|
<I>ppmtoicr</I>
|
|
|
|
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.
|
|
<P>
|
|
|
|
Note that there is no icrtoppm tool - this transformation is one way.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-windowname</B><I>name</I>
|
|
|
|
<DD>
|
|
Output will be displayed in
|
|
<I>name</I>
|
|
|
|
(Default is to use
|
|
<I>ppmfile</I>
|
|
|
|
or "untitled" if standard input is read.)
|
|
<DT id="2"><B>-expand</B><I>expand</I>
|
|
|
|
<DD>
|
|
Output will be expanded on display by factor
|
|
<I>expand</I>
|
|
|
|
(For example, a value of 2 will cause four pixels to be displayed for
|
|
every input pixel.)
|
|
<DT id="3"><B>-display</B><I>display</I>
|
|
|
|
<DD>
|
|
Output will be displayed on screen numbered
|
|
<I>display</I>
|
|
|
|
<DT id="4"><B>-rle</B>
|
|
|
|
<DD>
|
|
Use run-length encoded format for display. (This will nearly always
|
|
result in a quicker display, but may skew the colormap.)
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
To display a
|
|
<I>ppm</I>
|
|
|
|
file using the protocol:
|
|
<PRE>
|
|
ppmtoicr ppmfile
|
|
</PRE>
|
|
|
|
This will create a window named
|
|
<I>ppmfile</I>
|
|
|
|
on the display with the correct dimensions for
|
|
<I>ppmfile,</I>
|
|
|
|
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:
|
|
<PRE>
|
|
ppmtoicr ppmfile > filename
|
|
cat filename
|
|
</PRE>
|
|
|
|
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:
|
|
<PRE>
|
|
giftopnm giffile | ppmtoicr -w giffile -r -e 2
|
|
</PRE>
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
<P>
|
|
|
|
The protocol uses frequent
|
|
<I>fflush</I>
|
|
|
|
calls to speed up display. If the
|
|
output is saved to a file for later display via
|
|
<I>cat,</I>
|
|
|
|
drawing will be
|
|
much slower. In either case, increasing the Blocksize limit on the
|
|
display will speed up transmission substantially.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+ppm">ppm</A>(5)</B>
|
|
|
|
<P>
|
|
|
|
<I>NCSA Telnet for the Macintosh</I>,
|
|
|
|
University of Illinois at Urbana-Champaign (1989)
|
|
<A NAME="lbAI"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Copyright (C) 1990 by Kanthan Pillay (<A HREF="mailto:svpillay@Princeton.EDU">svpillay@Princeton.EDU</A>),
|
|
Princeton University Computing and Information Technology.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="5"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="6"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="7"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="8"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="9"><A HREF="#lbAF">EXAMPLES</A><DD>
|
|
<DT id="10"><A HREF="#lbAG">BUGS</A><DD>
|
|
<DT id="11"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
<DT id="12"><A HREF="#lbAI">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:25 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|