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


SaveFore

Saves the current foreground color.

pascal void SaveFore(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 foreground color.
DISCUSSION
The SaveFore function returns the current foreground color in the ColorSpec structure specified in the c parameter. You can save either the Color QuickDraw foreground color from the CGrafPort structure or the Palette Manager foreground color from the GrafVars structure. A value of 0 in the value field of the ColorSpec structure specifies retrieving the RGB color from the rgbFgColor field of the CGrafPort structure; a value of 1 in the value field specifies retrieving the palette entry from the pmFgColor field of the GrafVars structure.

IMPORTANT
The SaveFore 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