Important: The information in this document is obsolete and should not be used for new development.
BackColor
To change a basic graphics port's background color, use theBackColor
procedure.
PROCEDURE BackColor (color: LongInt);
color
- One of eight color values. You can use the constants described for the
ForeColor
procedure in the previous section.DESCRIPTION
TheBackColor
procedure sets the background color for the current graphics port to the color that you specify in thecolor
parameter. When you draw with thepatCopy
andsrcCopy
transfer modes, for example, white pixels are drawn in the color you specify withBackColor
.SPECIAL CONSIDERATIONS
TheBackColor
procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.SEE ALSO
All nonwhite colors appear as black on black-and-white screens. Before you useBackColor
, you can use theDeviceLoop
procedure, which is described in the chapter "Graphics Devices," to determine the color characteristics of the current screen.In System 7, you may instead use the Color QuickDraw procedure
RGBBackColor
, which is described in the chapter "Color QuickDraw."