Gdi32CreatePolygonRgn(NativePoint, Int32, FillMode) Method

Creates a polygonal region.

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 CreatePolygonRgn(
	NativePoint ptArray,
	int ptCount,
	FillMode mode
)

Parameters

ptArray  NativePoint
An array of NativePoint structures that define the vertices of the polygon in logical units. The polygon is presumed closed.

Each vertex can be specified only once.

ptCount  Int32
The number of points in the array.
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