Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!uakari.primate.wisc.edu!crdgw1!barnett From: barnett@grymoire.crd.ge.com (Bruce Barnett) Newsgroups: comp.graphics Subject: Re: PBM/MacPaint file format Message-ID: Date: 1 Mar 91 15:12:34 GMT References: <1991Feb28.143745.2601@electro.com> <1991Feb28.174421.29755@convex.com> Sender: news@crdgw1.crd.ge.com Reply-To: barnett@crdgw1.ge.com Organization: GE Corp. R & D, Schenectady, NY Lines: 25 In-reply-to: ewright@convex.com's message of 28 Feb 91 17:44:21 GMT In article <1991Feb28.174421.29755@convex.com> ewright@convex.com (Edward V. Wright) writes: > Use Resedit to set the file type to MPNT. It's more difficult than that. The macbinary header doesn't have ANYTHING in it except for a bunch of zeros. No name, no date, to data fork length, nothing. This tends to make Mac programs complain a lot. I grabbed some code for the mcvert.c program and I am getting closer. The name, date, application and creator now have a value. I need to determine what other bits must be there, and also need to calculate the proper length of the data fork. I also believe I need to set the Bundle bit. I may stop my coding because someone also told me about a Mac program on Sumex called gif-convertor that can convert from Sun rasterimage into MacPaint. I tried it, and it can convert Gif images to MacPaint or PICT files. It doesn't seem to handle Sun rasterimage files directly. Have to convert them into PBM format, and then into GIF. I will have to see how hard it is to get the pbmtomacp program to generate the proper header. -- Bruce G. Barnett barnett@crd.ge.com uunet!crdgw1!barnett