Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!quiche!monching From: monching@cs.mcgill.ca (Patrick WONG) Newsgroups: comp.sys.mac.programmer Subject: PLS HELP: How do you clip a portion as you create a PICT??? Message-ID: <1991Jan31.205958.2859@cs.mcgill.ca> Date: 31 Jan 91 20:59:58 GMT Sender: news@cs.mcgill.ca (Netnews Administrator) Organization: SOCS, McGill University, Montreal, Canada Lines: 21 I really can't figure this out. I am drawing in a window a couple of graphs. Each graph is clip to a small rectangle so they won't overlap the other graphs. This works fine for displaying in a window. However, when I save the picture on disk, the clip region is not saved. Is there some way to save the clip region as well? Here is the code: thePict := OpenPicture(BigRect); { union of all theRect[1..4] } for i := 1 to 4 do begin ClipRect(theRect[i]); DrawGraph(theGraph[i], theRect[i]); end; ClosePicture(thePic); DrawPicture(thePic); {This is fine} SavePicture(thePic); {Agh! the clip region is no longer there} -- patrick wong | McGill University monching@cs.mcgill.ca | School of Computer Science | Montreal, Quebec