\ .\" This man page was generated by the Netpbm tool 'makeman' from HTML source. .\" Do not hand-hack it! If you have bug fixes or improvements, please find .\" the corresponding HTML page on the Netpbm website, generate a patch .\" against that, and send it to the Netpbm maintainer. .TH "Ppmtoicr User Manual" 0 "30 July 1990" "netpbm documentation" .UN lbAB .SH NAME ppmtoicr - convert a PPM image into NCSA ICR format .UN lbAC .SH SYNOPSIS \fBppmtoicr\fP [\fB-windowname\fP \fIname\fP] [\fB-expand\fP \fIexpand\fP] [\fB-display\fP \fIdisplay\fP] [\fB-rle\fP] [\fIppmfile\fP] .UN lbAD .SH DESCRIPTION .PP This program is part of .BR Netpbm (1) . .PP \fBppmtoicr\fP reads a PPM file as input. Produces an NCSA Telnet Interactive Color Raster graphic file as output. If \fIppmfile\fP is not supplied, \fBppmtoicr\fP reads from Standard Input. .PP 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. .PP \fBppmtoicr\fP will output the appropriate sequences to create a window of the dimensions of the input image, create a colormap of up to 256 colors on the display, then load the picture data into the window. .PP Note that there is no icrtoppm tool - this transformation is one way. .UN lbAE .SH OPTIONS .TP \fB-windowname\fP \fIname\fP Output will be displayed in \fIname\fP (Default is to use \fIppmfile\fP or 'untitled' if the input is from Standard Input). .TP \fB-expand\fP \fIexpand\fP Output will be expanded on display by factor \fIexpand\fP (For example, a value of 2 will cause four pixels to be displayed for every input pixel.) .TP \fB-display\fP \fIdisplay\fP Output will be displayed on screen numbered \fIdisplay\fP .TP \fB-rle\fP Use run-length encoded format for display. (This will nearly always result in a quicker display, but may skew the colormap). .UN lbAF .SH EXAMPLES To display a PPM file named \fBppmfile\fP using the protocol: .nf ppmtoicr ppmfile .fi This will create a window named \fIppmfile\fP on the display with the correct dimensions for \fIppmfile\fP, create and download a colormap of up to 256 colors, and download the picture into the window. You may achieve the same effect with the following sequence: .nf ppmtoicr ppmfile > filename cat filename .fi .PP 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: .nf giftopnm giffile | ppmtoicr -w giffile -r -e 2 .fi .UN lbAG .SH LIMITATIONS .PP The protocol uses frequent fflush() calls to speed up display. If you save the output to a file for later display via \fBcat\fP, \fBppmtoicr\fP will draw much more slowly. In either case, increasing the blocksize limit on the display will speed up transmission substantially. .UN lbAH .SH SEE ALSO .BR ppm (5) .PP NCSA Telnet for the Macintosh, University of Illinois at Urbana-Champaign (1989) .UN lbAI .SH AUTHOR Copyright (C) 1990 by Kanthan Pillay (\fIsvpillay@Princeton.EDU\fP), Princeton University Computing and Information Technology.