Important: The information in this document is obsolete and should not be used for new development.
RestoreBack
Sets the current background color to the color you specify.
pascal void RestoreBack(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 background color.DISCUSSION
TheRestoreBackfunction stores the RGB color of theColorSpecstructure specified by thecparameter as the current background color. You can restore either the Color QuickDraw foreground color in theCGrafPortstructure or the Palette Manager background color in theGrafVarsstructure. If you specify 0 in thevaluefield of theColorSpecstructure, theRestoreBackfunction stores the RGB value in thergbFgColorfield of the currentCGrafPortstructure. If you specify 1 in thevaluefield of theColorSpecstructure, theRestoreBackfunction stores the RGB value in thepmBkColorfield of theGrafVarsstructure.
- IMPORTANT
- The
RestoreBackfunction is available only with system software versions 6.0.5 and later and with the 32-Bit QuickDraw system extension.![]()