[net.micro.mac] ??? PC printing of Macintosh pictures ???

sdy@ssc-bee.UUCP (Steven D Yee) (08/06/86)

[poor, poor, line-eater, all alone and not a CRLF to eat]

For some reason (ahh, the glory of a "we done doed it") we are going to attempt
to transfer some Macintosh pictures to a PC-XT. We thought that we might
try to quickly transfer via serial ports (mac to xt) using kermit (only
because its available here and works) then we wanted to try and process/print
the picture on an Epson or HP LaserJet.

Now it seems as if someone must've tried this before -- any hints??

Oh yeah, we're probably going to use RedRyder (an older version not 9.xx
but it still works ok) for the mac side and Kermit 1.1C for the pc.

I realize it might be better to move it to a vax, convert, upload to the pc
but that's not the intent. 

Might it be easier if I forced the mac-picture (MacPaint or MacDraw) into
a Postscript form?? -- I've heard you can do this but haven't tried it yet.

I will summerize the results of our attempt if desired.
Mail or post I'll check both.

thanks in advance.


-- 
IamTCMIamTCMIamTCMIamTCMIamTCMIamTCMIamTCMIamTCMIamTCMIamTCMIamTCMIamTCMIamTCM

Steven D. Yee                 >>> my employer does not share my opinions  <<<
uw-beaver!ssc-vax!sdy         >>> (that's because I'm always right! ;-)   <<<

"... I'm always try'n to reach you, can't get thru, our communication depends
     on me and you, got to stay in touch even though we're on the move, keep
     your lines open, say whats new ..."

sdh@joevax.UUCP (The Doctor) (08/08/86)

> For some reason (ahh, the glory of a "we done doed it") we are going to attempt
> to transfer some Macintosh pictures to a PC-XT. We thought that we might
> try to quickly transfer via serial ports (mac to xt) using kermit (only
> because its available here and works) then we wanted to try and process/print
> the picture on an Epson or HP LaserJet.
> 

What you should do is send the Macpaint pictures to the IBM in their original
format, and convert them there, and then dump them.

The format is:
The first 512 bytes are a header. You can ignore that.
What follows is packed data in the following scheme:


+------------+------------+-----~~-----+------------+
| run_length |     variable length data field       |
+------------+------------+------------+------------+

consider run_length to be a signed 8 bit integer.

if run_length >= 0, what follows is (run_length + 1) bytes of raw data
        to be copied to the ouput stream.
if run_length < 0, what follows is a single byte of repeating data to be
        copied to the output stream (1 - run_length) times.

Things to remember:
A standard MacPaint picture consists of 720 lines each containing 72
bytes.

Macintosh pixels are square.  Displaying them on an IBM monitor will
make images look stretched because of the difference in aspect ratio.
If your printer doesn't produce equally proportioned dots, you'll have to
compensate.

If you'd like, I have a utility written in AZTEC C (usuable only in the 
AZTEC shell since it needs ouput redirection) that converts the PICT type
(used in the scrapbook etc) to a hex format.  You could then send that text
to the IBM and convert it there.  It will not do an entire MacPaint picture,
to the best of my knowledge.

Steve Hawley
joevax!sdh