FillCPoly
FillCPoly
Fill interior of a polygon with specified pattern #include <Quickdraw.h> Color Quickdraw
PolyHandle thePoly ; handle of polygon to fill
FillCPoly fills all pixels enclosed by the line segments of a polygon with a specified pattern. The transfer mode is CopyPixPat, overwriting all bits within the region.
thePoly is a handle leading to a variable-length Polygon structure. It is typically a value obtained via OpenPoly.
Notes: The interior of the polygon is treated as a region, even if it is not a closed
structure. The entire region, including the output of any
previously- executed frame operation, is overwritten by the pattern.
The pen position is not changed by this function. The cGrafPort's pen
pattern, pen 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.