Important: The information in this document is obsolete and should not be used for new development.
FillRectTo fill a rectangle with any available bit pattern, use the
PROCEDURE FillRect (r:\xDDRect; pat: Pattern);
- The rectangle to fill.
- The bit pattern to use for the fill. Figure 3-3 on page 3-6 illustrates the default fill patterns and the constants you can use to represent them.
patCopypattern mode, the
FillRectprocedure draws the interior of the rectangle that you specify in the
rparameter with the pattern defined in the
Patternrecord that you specify in the
patparameter. This procedure leaves the pen location unchanged.
FillRectprocedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.
SEE ALSOListing 3-5 on page 3-20 illustrates how to use this procedure.
patCopypattern mode is described in "Boolean Transfer Modes With 1-Bit Pixels" beginning on page 3-7. The
Patternrecord is described on page 3-36. You can use the
GetIndPatternroutines, described on page 3-122 and page 3-123, respectively, to get a pattern stored in a resource.
You can use the
PaintRectprocedure, described in the previous section, to draw the interior of a rectangle with the pen pattern for the current graphics port. To fill a rectangle with a pixel pattern, use the
FillCRectprocedure, which is described in the chapter "Color QuickDraw."