[comp.sys.mac.programmer] saving a picture

heberlei@iris.ucdavis.edu (Louis Todd Heberlein) (12/07/88)

I am looking for some information on picture formats.  How can I save
a picture that I have created with my own software such that I can
load it up on MacPaint?

I am using Aztec C to draw some 3-D pictures, and I would like to
enhance them with a paint program.  I would prefer not to have to save
every MoveTo and LineTo command, but I am flexible.

Any ideas??

Todd Heberlein

heberlei@iris.ucdavis.edu  (128.120.57.20)

beard@ux1.lbl.gov (Patrick C Beard) (12/07/88)

OpenPicture(), ClosePicture(), and PutScrap().  Using OpenPicture(), save
all of the drawing commands into a picture handle, and using PutScrap()
put it on the clipboard.  Then, either paste it in the scrapbook for later
pasting, or paste it directly into MacPaint (or MacDraw for that matter).

Hope this helps,

Patrick Beard
Lawrence Berkeley Laboratory