Fills a polygon, using the scan converter
procedure FillPoly(NumPoints: Word; var PolyPoints);
PolyPoints is an untyped parameter that contains the coordinates of each intersection in the polygon. NumPoints specifies the number of coordinates in PolyPoints. A coordinate consists of two words, an X and a Y value.
FillPoly calculates all the horizontal intersections, and then fills the polygon using the current fill style and color defined by SetFillStyle or SetFillPattern. The outline of the polygon is drawn in the current line style and color as set by SetLineStyle.
If an error occurs while filling the polygon, GraphResult returns a value of grNoScanMem.
Must be in graphics mode.