Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!sdcc6!mplvax!cdl From: cdl@mplvax.nosc.MIL (Carl Lowenstein) Newsgroups: comp.text Subject: Re: Printing bitmaps on an ImageStation Keywords: imPRESS rasterfiles Message-ID: <792@mplvax.nosc.MIL> Date: 16 Dec 88 00:15:11 GMT References: <531@oresoft.uu.net> Reply-To: cdl@mplvax.ucsd.edu.UUCP (Carl Lowenstein) Organization: U.C. San Diego, Marine Physical Laboratory Lines: 35 In article <531@oresoft.uu.net> daveb@oresoft.UUCP (David Barnes) writes: >Can anyone suggest a method for printing bit maps on an Imagen ImageStation >printer? The bitmaps in question are Sun screendump raster files. I can >convert them to imPRESS using Imagen's imScreen filter or the public-domain >rastoimp program; both produce correctly-formatted imPRESS files. > >The problem is that the printer configuration requires an end-of-file >character to be defined, in the range 0..255. Unfortunately, the bitmaps >I'm printing can contain ANY value in this range, including the EOF marker. >When the printer sees the EOF character in the bitmap, it issues an "unexpected >end-of-file" error and produces incomplete or garbled output. I infer that you have a serial link betwen the Sun and the Imagen. The serial byte-stream protocol can be set up to have two special purpose characters: EOF and Quote. Recommended values are 0x04 and 0x02, respectively. The trick is to get the sending program on the Sun and the receiving program on the Imagen to agree on these values. Then the sending program can be set up to intercept any bit-map value which happens to be equal to EOF or Quote, and send it as Quote EOF or Quote Quote. That would be (hex) 02 30 34 or (hex) 02 30 32, respectively. Note that the quoted character is 'spelled out' in hex ascii. In this way, you never get a raw EOF character except at the real end of the file. Read all about this in ImageServer XP Programmer's Guide, Part IV: Communications. This is the way it has worked in the past on other Imagen printers, and I hope that you can convince your ImageStation to do the same, going through its setup procedure. -- carl lowenstein marine physical lab u.c. san diego {decvax|ucbvax} !ucsd!mplvax!cdl cdl@mplvax.ucsd.edu cdl@mplvax.nosc.mil