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
ColorSpec
structure (described in the chapter "Color QuickDraw" of Inside Macintosh: Imaging With QuickDraw) to hold the current foreground color.DISCUSSION
TheSaveFore
function returns the current foreground color in theColorSpec
structure specified in thec
parameter. You can save either the Color QuickDraw foreground color from theCGrafPort
structure or the Palette Manager foreground color from theGrafVars
structure. A value of 0 in thevalue
field of theColorSpec
structure specifies retrieving the RGB color from thergbFgColor
field of theCGrafPort
structure; a value of 1 in thevalue
field specifies retrieving the palette entry from thepmFgColor
field of theGrafVars
structure.
- IMPORTANT
- The
SaveFore
function is available only with system software versions 6.0.5 and later and with the 32-Bit QuickDraw system extension.