Important: The information in this document is obsolete and should not be used for new development.
GetBackColor
Use theGetBackColor
procedure to obtain the background color of the current graphics port.
PROCEDURE GetBackColor (VAR color: RGBColor);
color
- An
RGBColor
record.DESCRIPTION
In thecolor
parameter, theGetBackColor
procedure returns theRGBColor
record for the background 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 thergbBkColor
field.If the current graphics port is defined by a
GrafPort
record, then only eight possible colors can be returned. These eight colors 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.SPECIAL CONSIDERATIONS
This procedure is available for basic QuickDraw only in System 7.SEE ALSO
You can use theRGBBackColor
procedure, described on page 4-63, to change the background color.