FillRect
FillRect
Fill a rectangle with a specified pattern Rect *theRect ; address of a rectangle, in local coordinates PatPtr thePat ; address of an 8-byte Pattern structure FillRect fills all pixels enclosed by a rectangle with a specified pattern. The transfer mode is patCopy, overwriting all bits within the rectangle.
theRect is the address of an 8-byte Rect structure, in local coordinates. thePat is the address of an 8-byte Pattern structure. It may be one of the global patterns (black, white, gray, ltGray, or dkGray), or a pattern read from a resource, or a pattern created by the application. See
PenPat for examples of obtaining or creating a pattern.
Notes: The bits of thePat overwrite the interior of theRect . As with all pattern
operations, the top-left of the pattern is aligned at a multiple of 8 dots from
local coordinate (0,0). The SetOrigin function can be used to change the local coordinate system and thus modify the alignment of the pattern
relative to previously-drawn figures.
mode, and background pattern are ignored.
As with all Quickdraw drawing, the output is clipped to the intersection of
the current GrafPort's bitMap boundary rectangle, the port rectangle, clipping region, and visible region.