PenMode
PenMode Set the graphics pen pattern transfer mode short newPnMode ; transfer mode; patCopy, patOr, patXor, etc.
PenMode selects the pattern transfer mode to be used in pen drawing and painting operations.
newPnMode is a short and may be one of the following constants defined in
Quickdraw.h:
patCopy 8 overwrite background entirely
patOr 9 overwrite where pattern is black
patXor 10 invert where pattern and bkgd are both black
patBic 11 force white where pattern is black
notPatCopy 12 invert pattern, then patCopy
notPatOr 13 invert pattern, then patOr
notPatXor 14 invert pattern, then patXor
notPatBic 15 invert pattern, then patBic
Notes: This function modifies the pnMode field of the current GrafPort structure. pen modes.
You can obtain the current setting by accessing the pnMode field of a
curPnMode = thePort->pnMode;
This function does not affect how text is drawn. Use TextMode to modify the text-drawing pen's transfer mode.