[comp.sys.mac.programmer] How does one clip a portion ofwith OpenPicture and ClosePicture?

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

I wish to create a PICT. I would be drawing in a large rectangle but only
wish certain portions to be shown. So as I'm drawing there has be be
a clipping region each time I draw something.

This is what I do. I draw one graph which is cliped with a small rectangle.
The graph may go outside the rectangle but isn't shown. I draw a second
graph under the first graph with it's clip rect. 

If I use DrawPicture it is drawn correctly but I save it to a disk file.
It seems that the clip region is no longer there. The graph is shown everywhere.

Does anyone know why the clip region is not saved in the PICT file?


-- 
patrick wong                   | McGill University           
monching@cs.mcgill.ca          | School of Computer Science
                               | Montreal, Quebec            

MUGGC@CUNYVM.BITNET (AGS) (02/07/91)

QuickDraw only records _drawing_ operations in pictures. However, if you
are not faint-of-heart you might try using picture comments to define your
clipping region...

Alexander Smith
CUNY GSUC