Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Advanced Color Imaging Reference /
Chapter 1 - Palette Manager Reference /
Palette Manager Functions / Drawing With Color Palettes


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
The SaveBack function returns the current background color in the c parameter. You can save either the Color QuickDraw background color from the CGrafPort structure or the Palette Manager background color from the GrafVars structure. A value of 0 in the value field of the ColorSpec structure specifies retrieving the RGB color from the rgbBkColor field of the CGrafPort structure; a value of 1 in the value field specifies retrieving the palette entry from the pmBkColor field of the GrafVars 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.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996