Important: The information in this document is obsolete and should not be used for new development.
SaveFore
Saves the current foreground color.
pascal void SaveFore(ColorSpec *c);
c- A pointer to a
ColorSpecstructure (described in the chapter "Color QuickDraw" of Inside Macintosh: Imaging With QuickDraw) to hold the current foreground color.DISCUSSION
TheSaveForefunction returns the current foreground color in theColorSpecstructure specified in thecparameter. You can save either the Color QuickDraw foreground color from theCGrafPortstructure or the Palette Manager foreground color from theGrafVarsstructure. A value of 0 in thevaluefield of theColorSpecstructure specifies retrieving the RGB color from thergbFgColorfield of theCGrafPortstructure; a value of 1 in thevaluefield specifies retrieving the palette entry from thepmFgColorfield of theGrafVarsstructure.
- IMPORTANT
- The
SaveForefunction is available only with system software versions 6.0.5 and later and with the 32-Bit QuickDraw system extension.![]()