Important: The information in this document is obsolete and should not be used for new development.
SaveBack
Saves the current background color.
pascal void SaveBack(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 background color.DISCUSSION
TheSaveBack
function returns the current background color in thec
parameter. You can save either the Color QuickDraw background color from theCGrafPort
structure or the Palette Manager background color from theGrafVars
structure. A value of 0 in thevalue
field of theColorSpec
structure specifies retrieving the RGB color from thergbBkColor
field of theCGrafPort
structure; a value of 1 in thevalue
field specifies retrieving the palette entry from thepmBkColor
field of theGrafVars
structure.
- IMPORTANT
- The
SaveBack
function is available only with system software versions 6.0.5 and later and with the 32-Bit QuickDraw system extension.