IMAGE4 Image Display Program for the PRO Author: John M. Crowell 17-Apr-85 Crow4ell, Ltd.* 145 Andanada Los Alamos, NM 87544 Based upon the original program by: Greg Adams and David Fingerhut of Digital Equipment Corporation Pro-380 support added by David Fingerhut COPYRIGHT (C) NOT-AT-ALL This software is furnished under license for use on any computer system and may be copied with or without inclusion of this notice. This software, or any other copies thereof, may be provided or otherwise made available to any other person. Title to and ownership of the software shall at all times remain in the public domain. The information in this software is subject to change without notice, and should not be construed as a commitment by the author, or Crow4ell, Ltd.* I understand the Digital Equipment Corporation can't be blamed either. The author assumes no responsibility for the use or reliability of this software on equipment which is not supplied by someone. Operating System: RT-11 V5.2 (or later) Hardware Required: PRO-350, PRO-380, or whatever * but not very Page 1 of 3 Page 2 of 3 This program displays image files on the PRO-3xx's bit-mapped display. It is a variation on the original program by Greg Adams and David Fingerhut of DEC. In most cases the options and their defaults are the same as in the original program. The image files are of two types - monochrome and colour - and are divided into 60-block segments. Monochrome files have only one segment and are therefore 60 blocks long. Colour files have three segments. The first 60-block segment corresponding to the RED image plane, the second to the GREEN plane, and the third to the BLUE plane. Colour files are 180 blocks long. Any file that is not either 60 or 180 blocks long is rejected as not being a proper image file. Each segment is divided into 240 lines of 128 bytes each corresponding to the 240 horizontal lines of the visible display. The 1024 bits of those 128 bytes are grouped in 1's, 2's or 4's depending upon the resolution. A resolution of 256 pixels assumes that each group of four bits defines the intensity level (0-15). A resolution of 512 pixels has two bits of intensity level (0-3). A resolution of 1024 pixels ahs one bit per pixel for two intensity levels (0-1). The first 128 bytes in the segment corresponds to the top of the screen. At the CSI prompt '*' from 1 to 6 image files may be specified. They may be a mixture of monochrome and colour files. Options may be specified as described below; and they may refer to specific files or they may refer to all the files in the current list. e.g. *file1,file2/option,file3/option/option,file4,file5/option OPTIONS: "Global" options affect the "current default" value for the list of image files. If they are to depart from the program defaults, they must be respecified on subsequent lists. "Local" options affect only the file specification they accompany. RESOLUTION /R:n (global) Specifies the resolution. n must be 256., 512., or /X:n (local) 1024. The default is 256. VIEWING TIME /W:n (global) Sets the viewing time of the image in seconds. (W is /T:n (local) used for compatibility with the original program.) The default is 5 seconds. (now it gets tricky) Page 3 of 3 MONOCHROME /M:xxx (global) Specifies that a monochrome image is to be displayed. /B:xxx (local) Only one specified section of a colour image file will be displayed. RED The corresponding section of a colour file will be xxx = GRE shown as a BLACK & WHITE image. The default is BLUE BLU (for compatibility with the original program). If there is no extended bit-map option in the system, that section will be shown in BLACK & WHITE. A monochrome file will be shown as a BLACK & WHITE image independent of the value of xxx. COLOUR /C (global) (The program default) A normal, full-colour display. /F (local) A monochrome file will be shown in BLACK & WHITE. (F stands for FARB, of course!) /C:xxx (global) Specifies that a particular section of the image file /F:xxx (local) be displayed in the appropriate colour plane. RED The corresponding section of a colour file will be xxx = GRE shown in that colour. This is useful in editing images BLU when one wants to view only one colour component of the image. A monochrome file is shown in the requested colour. If there is no extended bit-map option in the system, that section will be shown in BLACK & WHITE.