mingyu@romeo.cs.duke.edu (Mingyu Wang c/o hsg) (10/21/89)
Hi,there, I've just started learning to program the Mac. My immediate goal is to set up a line drawing program to process some weird lab data. Now here is the problem: how do you output the graphics into a file in MacPaint format, so that I can just read the output directly into MacPaint to add some nuts and bolts to the picture? This might sound easy for you guys, but give the starter a hand please. I would appreciate if you can give me some ref. lists or share with me pieces of code you have already. Thanks! mingyu@romeo.cs.duke.edu mingyu@northlab.ac.duke.edu
oster@dewey.soe.berkeley.edu (David Phillip Oster) (10/24/89)
See if you can find a copy of Tech Note 86, which describes the file format in detail, and gives C and Pascal examples for reading and writing the file. LightSpeed C version 4 comes with source code, in art class, to do this directly. Claris also publishes a tech note with this information, and lastly, you probably should be writing PICT files, which can be read by MacDraw, among others, since they don't restrict you to MacPaint's 576x720 bitmap, but let you use as much resolution as you want. A PICT file is simply the data from a PicHandle preceded by 512 bytes of 0. See Tech note 154. > The mac is a detour in the inevitable march of mediocre computers. > drs@bnlux0.bnl.gov (David R. Stampf) --- David Phillip Oster -master of the ad hoc odd hack. Arpa: oster@dewey.soe.berkeley.edu Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu