Important: The information in this document is obsolete and should not be used for new development.
MatchRec
As described in "Application-Defined Routine" on page 4-92, you can customize theSeedCFill
andCalcCMask
procedures by writing your own color search functions and pointing to them in thematchProc
parameters for these procedures.When
SeedCFill
orCalcCMask
calls your color search function, theGDRefCon
field of the currentGDevice
record (described in the chapter "Graphics Devices") contains a pointer to aMatchRec
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 = RECORD 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} END;
Field Description
red
- Red value of the seed.
green
- Green value of the seed.
blue
- Blue value of the seed.
matchData
- The value passed in the
matchData
parameter of theSeedCFill
orCalcCMask
procedure.