Important: The information in this document is obsolete and should not be used for new development.
GetForeColor
Use theGetForeColorprocedure to obtain the color of the foreground color for the current graphics port.
PROCEDURE GetForeColor (VAR color: RGBColor);
color- An
RGBColorrecord.DESCRIPTION
In thecolorparameter, theGetForeColorprocedure returns theRGBColorrecord for the foreground color of the current graphics port. This procedure operates for graphics ports defined by both theGrafPortandCGrafPortrecords. If the current graphics port is defined by aCGrafPortrecord, the returned value is taken directly from thergbFgColorfield.If the current graphics port is defined by a
GrafPortrecord, then only eight possible RGB values can be returned. These eight values are determined by the values in a global variable namedQDColors, which is a handle to a color table containing the current QuickDraw colors. These colors are listed in Table 4-4 on page 4-62. This default set of colors has been adjusted to match the colors produced on the ImageWriter II printer.SPECIAL CONSIDERATIONS
This procedure is available for basic QuickDraw only in System 7.SEE ALSO
You can use theRGBForeColorprocedure, described on page 4-61, to change the foreground color.