C Language and Libraries Help (clang.hlp) (
Table of Contents;
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►
─────Run-Time Library───────────────────────────────────────────────────────
The _polygon functions draw polygons. The border of the polygon
is drawn in the current color and line style. The _polygon
routine uses the viewport coordinate system (expressed in
_xycoord structures). The _polygon_wxy and _polygon_w routines use
real-valued window coordinates (expressed in _wxycoord structures
and in pairs of double-precision floating-point values,
respectively).
The argument <points> is an array of _xycoord or _wxycoord
structures or pairs of doubles, each of which specifies one of
the polygon's vertices. (For _polygon_w, <points>[0] and
<points>[1] specify the <x> and <y> coordinates, respectively, of
the first point.) If the first point does not equal the last
point, the _polygon functions use them to provide a closing edge.
The argument <numpoints> indicates the number of elements (the
number of vertices) in the <points> array. The minimum number of
points is 3, the maximum is 16,381.
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 these functions.
If you try to fill the polygon with the _floodfill function, it
must be bordered by a solid line style.
Return Value
The _polygon, _polygon_w, and _polygon_wxy functions return a
nonzero value if the polygon is drawn successfully; otherwise,
they return 0.
-♦-