[comp.sys.mac.programmer] PLS HELP: How do you clip a portion as you create a PICT???

monching@cs.mcgill.ca (Patrick WONG) (02/01/91)

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