Important: The information in this document is obsolete and should not be used for new development.
GetForeColor
Use theGetForeColor
procedure to obtain the color of the foreground color for the current graphics port.
PROCEDURE GetForeColor (VAR color: RGBColor);
color
- An
RGBColor
record.DESCRIPTION
In thecolor
parameter, theGetForeColor
procedure returns theRGBColor
record for the foreground color of the current graphics port. This procedure operates for graphics ports defined by both theGrafPort
andCGrafPort
records. If the current graphics port is defined by aCGrafPort
record, the returned value is taken directly from thergbFgColor
field.If the current graphics port is defined by a
GrafPort
record, 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 theRGBForeColor
procedure, described on page 4-61, to change the foreground color.