XPolygonRegion

Syntax

Region XPolygonRegion(points, n, fill_rule)
      XPoint points[];
      int n;
      int fill_rule;

Arguments

points Specifies an array of points.
n Specifies the number of points in the polygon.
fill_rule Specifies the fill-rule you want to set for the specified GC. You can pass EvenOddRule or WindingRule .

Description

The XPolygonRegion() function returns a region for the polygon defined by the points array. For an explanation of fill_rule, see XCreateGC().

See also

XCreateRegion(), XDestroyRegion(), XEmptyRegion(), XIntersectRegion(), XSetRegion(), "Creating, Copying, or Destroying Regions".
Christophe Tronche, [email protected]