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 theSeedCFillandCalcCMaskprocedures by writing your own color search functions and pointing to them in thematchProcparameters for these procedures.When
SeedCFillorCalcCMaskcalls your color search function, theGDRefConfield of the currentGDevicerecord (described in the chapter "Graphics Devices") contains a pointer to aMatchRecrecord. 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
matchDataparameter of theSeedCFillorCalcCMaskprocedure.