Path: utzoo!utgpu!watserv1!watmath!att!pacbell!pacbell.com!ucsd!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!linac!midway!news From: gft_james@gsbacd.uchicago.edu Newsgroups: comp.sys.mac.programmer Subject: CalcMask Message-ID: <1990Aug31.154627.14859@midway.uchicago.edu> Date: 31 Aug 90 15:42:50 GMT Sender: news@midway.uchicago.edu (News Administrator) Organization: University of Chicago Graduate School of Business Lines: 19 I need to generate masks for a whole pile o' bitmaps, and I don't want to do it manually. My "Inside Mac" DA lists a routine: PROCEDURE CalcMask (srcPtr,dstPtr: Ptr; srcRow, dstRow, height, words: INTEGER); Given a source bit image, CalcMask computes a destination bit image with 1's only in the pixels where paint could not leak from any of the outer edges, like the MacPaint lasso tool. Calls to CalcMask are not clipped to the current port and are not stored into QuickDraw pictures. This sounds like exactly what I need, but I can't for the life of me figger out what the arguments should be, and I can't find any reference to this routine in Inside Mac I, II, II, or V. I don't have IV. V has documentation for CalcCMask (apparently the color version of this routine), but the argument set is totally different, and I want to work in B&W. Can someone help me out? Thanks in advance. -James-