Important: The information in this document is obsolete and should not be used for new development.
RestoreFore
Sets the current foreground color to the color you supply.
pascal void RestoreFore(const ColorSpec *c);
c- A pointer to a
ColorSpecstructure (described in the chapter "Color QuickDraw" of Inside Macintosh: Imaging With QuickDraw) containing the RGB color to be set as the foreground color.DISCUSSION
TheRestoreForefunction stores the RGB color of theColorSpecstructure you specify by thecparameter as the current foreground color. You can store the color into either the Color QuickDraw foreground color in theCGrafPortstructure or the Palette Manager foreground color in theGrafVarsstructure. If you specify 0 in thevaluefield of theColorSpecstructure, theRestoreForefunction stores the RGB value in thergbFgColorfield of the currentCGrafPortstructure. If you specify 1 in thevaluefield of theColorSpecstructure, theRestoreForefunction stores the RGB value in thepmFgColorfield of theGrafVarsstructure.
- IMPORTANT
- The
RestoreForefunction is available only with system software versions 6.0.5 and later and with the 32-Bit QuickDraw system extension.![]()