Application: CalcCMask & CalcMask Description: This snippet shows how to use both CalcCMask or CalcMask to create a mask given a source bitmap image. As decribed on pages IV-24 and V-72 of Inside Mac, the two routines compute a destination bitmap image with 1's only in the pixels where paint can not leak from any of the outer edges, This is similar to the lasso tool found in many drawing apps. File: CalcCMask & CalcMask.¹ CalcCMask & CalcMask.c CalcCMask & CalcMask.¹.rsrc Programmer: Edgar Lee Organization: Apple Computer, Inc. Department: Developer Technical Support, DTS Language: C (Think C version 5.0.1) Date Created: 2-26-92