[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
     NAME:  FillPoly

     USE:   Fills a polygon  with the current fill style and color using
            the scan converter.  Errors are returned through GraphResut.

     DEPENDENCY:  Must first be in graphics mode.  The unit Graph
                  must also be placed in the uses section.

     SYNTAX:  FillPoly(NumPoints : word; var PolyPoints);

     EXAMPLE:        const
                     Pentagon: array(1..6) of PointType =
                     ((x:  50; y:     50),
                      (x:  75; y:     75),
                      (x:  62; y:    100),
                      (x:  48; y:    100),
                      (x:  25; y:     75),
                      (x:  50; y:     50));

                      begin
                        ...
                        DrawPoly(SizeOf(Pentagon)
                                 div SizeOf(PointType),
                                            Pentagon);
                         FillPoly(SizeOf (Pentagon)
                                  div SizeOf(PointType),
                                  Pentagon);
                          ...
                        end.

See Also: DrawPoly GetFillSettings SetFillStyle SetFillPattern
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson