Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
ppmtoicr(1)
Edit
PageHistory
Diff
Info
LikePages
ppmtoicr !!!ppmtoicr NAME SYNOPSIS DESCRIPTION OPTIONS EXAMPLES BUGS SEE ALSO AUTHOR ---- !!NAME ppmtoicr - convert a portable pixmap into NCSA ICR format !!SYNOPSIS __ppmtoicr__ [[__-windowname__ ''name''] [[__-expand__ ''expand''] [[__-display__ ''display''] [[__-rle__] [[''ppmfile''] !!DESCRIPTION Reads a portable pixmap file as input. Produces an NCSA Telnet Interactive Color Raster graphic file as output. If ''ppmfile'' is not supplied, ''ppmtoicr'' 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. ''ppmtoicr'' 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. !!OPTIONS __-windowname__''name'' Output will be displayed in ''name'' (Default is to use ''ppmfile'' or '' __-expand__''expand'' Output will be expanded on display by factor ''expand'' (For example, a value of 2 will cause four pixels to be displayed for every input pixel.) __-display__''display'' Output will be displayed on screen numbered ''display'' __-rle__ Use run-length encoded format for display. (This will nearly always result in a quicker display, but may skew the colormap.) !!EXAMPLES To display a ''ppm'' file using the protocol: ppmtoicr ppmfile This will create a window named ''ppmfile'' on the display with the correct dimensions for ''ppmfile,'' 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 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: giftopnm giffile | ppmtoicr -w giffile -r -e 2 !!BUGS The protocol uses frequent ''fflush'' calls to speed up display. If the output is saved to a file for later display via ''cat,'' drawing will be much slower. In either case, increasing the Blocksize limit on the display will speed up transmission substantially. !!SEE ALSO __ppm(5)__ ''NCSA Telnet for the Macintosh'', University of Illinois at Urbana-Champaign (1989) !!AUTHOR Copyright (C) 1990 by Kanthan Pillay (svpillay@Princeton.EDU), Princeton University Computing and Information Technology. ----
3 pages link to
ppmtoicr(1)
:
pbmfilters(1)
Man1p
ppm(5)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.