Calculating Black-and-White Fills
QuickDraw provides theSeedFillandCalcMaskprocedures to help you determine the results of filling operations on portions of bitmaps. (Procedures for determining filling operations on pixel maps--namely,SeedCFillandCalcCMask--are described in the chapter "Color QuickDraw.")The
SeedFillprocedure produces a mask showing where bits would be filled from a starting point, like the paint pouring from the MacPaint¬ paint-bucket tool. The CalcMaskprocedure produces a mask showing where paint could not flow from any of the outer edges of a rectangle. You can use the resulting masks to transfer portions of bit images from one graphics port to another with theCopyBitsorCopyMaskprocedure, both of which are described in "Copying Images" beginning on page 3-107.
Subtopics
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help