graphics.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_polygon, _polygon_w, _polygon_wxy
 Summary Example                                  Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The _polygon functions draw polygons. The border of each polygon
     is drawn in the current color and line style. The _polygon
     function uses the view coordinate system (expressed in xycoord
     structures). The _polygon_w and _polygon_wxy functions use the
     real-valued window coordinate system (expressed in _wxycoord
     structures).
 
     For the _polygon_w function, the <points> argument is a series
     of values specifying the vertices of the polygon. For
     _polygon_wxy, the <points> argument is an array of xycoord (or
     _wxycoord) structures, each of which specifies one of the
     polygon's vertices.
 
     The <numpoints> argument indicates the number of elements in
     <points> (the number of vertices).
 
     The <control> argument can be one of the following manifest
     constants: _GBORDER or _GFILLINTERIOR.
 
     The _setwritemode, _setlinestyle, and _setfillmask functions all
     affect the output from _polygon and _polygon_wxy.
 
     Return Value
 
     The _polygon, _polygon_w, and _polygon_wxy functions return a
     nonzero value if the polygon is drawn successfully; otherwise,
     they return 0.
                                    -♦-