Gdi32CreatePolyPolygonRgn(Point, Int32, Int32, FillMode) Method

Creates a region consisting of a series of polygons. The polygons can overlap.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("GDI32.dll", SetLastError = true)]
public static IntPtr CreatePolyPolygonRgn(
	Point[] ptArray,
	int[] intArray,
	int intCount,
	FillMode mode
)

Parameters

ptArray  Point
An array of Point structures that define the vertices of the polygons in logical units. The polygons are specified consecutively.

Each polygon is presumed closed and each vertex is specified only once.

intArray  Int32
An array of integers, each of which specifies the number of points in one of the polygons in the array pointed to by ptArray.
intCount  Int32
The total number of integers in the array pointed to by intArray.
mode  FillMode
The fill mode used to determine which pixels are in the region.

Return Value

IntPtr
If the function succeeds, the return value is the handle to the region.

If the function fails, the return value is Zero.

Remarks

See Also