win32gui.CreatePolygonRgn

PyGdiHANDLE = CreatePolygonRgn(Points, PolyFillMode )

Creates a region from a sequence of vertices

Parameters

Points : [(int,int),...]

Sequence of POINT tuples: ((x,y),...).

PolyFillMode : int

Filling mode, one of ALTERNATE, WINDING