Important: The information in this document is obsolete and should not be used for new development.
|
|
Log In | Not a Member? |
Contact ADC |
GetBackColor
Use theGetBackColorprocedure to obtain the background color of the current graphics port.
PROCEDURE GetBackColor (VAR color: RGBColor);
color- An
RGBColorrecord.DESCRIPTION
In thecolorparameter, theGetBackColorprocedure returns theRGBColorrecord for the background 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 thergbBkColorfield.If the current graphics port is defined by a
GrafPortrecord, 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 theRGBBackColorprocedure, described on page 4-63, to change the background color.
Get information on Apple products.
Visit the Apple Store online or at retail locations. 1-800-MY-APPLE Copyright © 2007 Apple Inc. All rights reserved. | Terms of use | Privacy Notice |