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