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
ColorSpec
structure (described in the chapter "Color QuickDraw" of Inside Macintosh: Imaging With QuickDraw) containing the RGB color to be set as the foreground color.DISCUSSION
TheRestoreFore
function stores the RGB color of theColorSpec
structure you specify by thec
parameter as the current foreground color. You can store the color into either the Color QuickDraw foreground color in theCGrafPort
structure or the Palette Manager foreground color in theGrafVars
structure. If you specify 0 in thevalue
field of theColorSpec
structure, theRestoreFore
function stores the RGB value in thergbFgColor
field of the currentCGrafPort
structure. If you specify 1 in thevalue
field of theColorSpec
structure, theRestoreFore
function stores the RGB value in thepmFgColor
field of theGrafVars
structure.
- IMPORTANT
- The
RestoreFore
function is available only with system software versions 6.0.5 and later and with the 32-Bit QuickDraw system extension.