Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!fernwood!oracle!news From: fonion@oracle.com (Fritz Onion) Newsgroups: comp.sys.mac.programmer Subject: Question about regions Message-ID: Date: 16 Mar 91 00:01:37 GMT Sender: news@oracle.com Distribution: comp Organization: Oracle Corporation, Belmont, CA Lines: 22 I'm writing a game using offscreen bitmaps and need to copybits() objects from one bitmap to another with a mask region so the whole rectangle isn't copied. My problem is, how do I define a mask region that will exactly surround my objects? IM-1 describes how to create a region using quickdraw routines, but that would take forever. I've heard of games using pre-drawn regions stored in PICTS, but it's not clear to me how to get the region information from the PICT to the region. IM-1 simply says that non-rectangular region information is stored in some optimized way, but doesn't specify exactly what that way is. Can anyone tell me the best way to specify these regions? Either direct email or a post in comp.sys.mac.programmer would be fine. Thanks in advance - -Fritz Onion -- ------------------------------------------------------------------------------- Fritz Onion Oracle Corporation Applications Developer 2929 Campus Drive Application Foundation Suite 240 (415) 578-6811 San Mateo, CA 94403