Gdi32CreatePolygonRgn(NativePoint, Int32, FillMode) Method
Creates a polygonal region.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("GDI32.dll", SetLastError := true>]
Public Shared Function CreatePolygonRgn (
ptArray As NativePoint,
ptCount As Integer,
mode As FillMode
) As IntPtr
Dim ptArray As NativePoint
Dim ptCount As Integer
Dim mode As FillMode
Dim returnValue As IntPtr
returnValue = Gdi32.CreatePolygonRgn(ptArray,
ptCount, mode)
public:
[DllImportAttribute(L"GDI32.dll", SetLastError = true)]
static IntPtr CreatePolygonRgn(
NativePoint ptArray,
int ptCount,
FillMode mode
)
[<DllImportAttribute("GDI32.dll", SetLastError = true)>]
static member CreatePolygonRgn :
ptArray : NativePoint *
ptCount : int *
mode : FillMode -> IntPtr
No code example is currently available or this language may not be supported.
- 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.
IntPtr
If the function succeeds, the return value is the handle to the region.
If the function fails, the return value is
Zero.