Gdi32CreatePolyPolygonRgn(NativePoint, Int32, Int32, FillMode) Method
Creates a region consisting of a series of polygons. The polygons can overlap.
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 CreatePolyPolygonRgn(
NativePoint[] ptArray,
int[] intArray,
int intCount,
FillMode mode
)
<DllImportAttribute("GDI32.dll", SetLastError := true>]
Public Shared Function CreatePolyPolygonRgn (
ptArray As NativePoint(),
intArray As Integer(),
intCount As Integer,
mode As FillMode
) As IntPtr
Dim ptArray As NativePoint()
Dim intArray As Integer()
Dim intCount As Integer
Dim mode As FillMode
Dim returnValue As IntPtr
returnValue = Gdi32.CreatePolyPolygonRgn(ptArray,
intArray, intCount, mode)
public:
[DllImportAttribute(L"GDI32.dll", SetLastError = true)]
static IntPtr CreatePolyPolygonRgn(
[InAttribute] array<NativePoint>^ ptArray,
[InAttribute] array<int>^ intArray,
int intCount,
FillMode mode
)
[<DllImportAttribute("GDI32.dll", SetLastError = true)>]
static member CreatePolyPolygonRgn :
ptArray : NativePoint[] *
intArray : int[] *
intCount : 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 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.
IntPtr
If the function succeeds, the return value is the handle to the region.
If the function fails, the return value is
Zero.