Important: The information in this document is obsolete and should not be used for new development.
BackPatTo change the bit pattern used as the background pattern by the current graphics port, use the
PROCEDURE BackPat (pat: Pattern);
- A bit pattern, as defined by a
BackPatprocedure sets the bit pattern defined in the
Patternrecord, which you specify in the
patparameter, to be the background pattern. (The standard bit patterns
dkGrayare predefined; the initial background pattern for the graphics port is
white.) This pattern is stored in the
bkPatfield of a
BackPatprocedure also sets a bit pattern for the background color in a color graphics port. The
BackPatprocedure creates a handle, of type
PixPatHandle, for the bit pattern and stores this handle in the
bkPixPatfield of the
CGrafPortrecord. As in basic graphics ports, Color QuickDraw draws patterns in color graphics ports at the time of drawing, not at the time you use
PenPatto set the pattern.
BackPatprocedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.
Patternrecord is described on page 3-36. To define your own patterns, you typically create pattern or pattern list resources, which are described beginning on page 3-136.
CGrafPortrecord is described in the chapter "Color QuickDraw." To use a multicolored background pattern in a color graphics port, use the
BackPixPatprocedure, which is described in the chapter "Color QuickDraw."