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
ColorSpecstructure (described in the chapter "Color QuickDraw" of Inside Macintosh: Imaging With QuickDraw) to hold the current background color.DISCUSSION
TheSaveBackfunction returns the current background color in thecparameter. You can save either the Color QuickDraw background color from theCGrafPortstructure or the Palette Manager background color from theGrafVarsstructure. A value of 0 in thevaluefield of theColorSpecstructure specifies retrieving the RGB color from thergbBkColorfield of theCGrafPortstructure; a value of 1 in thevaluefield specifies retrieving the palette entry from thepmBkColorfield of theGrafVarsstructure.
- IMPORTANT
- The
SaveBackfunction is available only with system software versions 6.0.5 and later and with the 32-Bit QuickDraw system extension.![]()