Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 4 - Color QuickDraw / Color QuickDraw Reference
Data Structures /


As described in "Application-Defined Routine" on page 4-92, you can customize the SeedCFill and CalcCMask procedures by writing your own color search functions and pointing to them in the matchProc parameters for these procedures.

When SeedCFill or CalcCMask calls your color search function, the GDRefCon field of the current GDevice record (described in the chapter "Graphics Devices") contains a pointer to a MatchRec record. This record contains the RGB value of the seed pixel or seed color for which your color search function should search. This record has the following structure:

MatchRec = 
   red:        Integer; {red component of seed}
   green:      Integer; {green component of seed}
   blue:       Integer; {blue component of seed}
   matchData:  LongInt; {value in matchData parameter of }
                        { SeedCFill or CalcCMask}
Field Description
Red value of the seed.
Green value of the seed.
Blue value of the seed.
The value passed in the matchData parameter of the SeedCFill or CalcCMask procedure.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996