Gdi32CombineRgn Method
Combines two regions and stores the result in a third region.
The two regions are combined according to the specified mode.
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 RegionComplexity CombineRgn(
IntPtr hRgnDst,
IntPtr hRgnSrc1,
IntPtr hRgnSrc2,
RegionCombineMode mode
)
<DllImportAttribute("GDI32.dll", SetLastError := true>]
Public Shared Function CombineRgn (
hRgnDst As IntPtr,
hRgnSrc1 As IntPtr,
hRgnSrc2 As IntPtr,
mode As RegionCombineMode
) As RegionComplexity
Dim hRgnDst As IntPtr
Dim hRgnSrc1 As IntPtr
Dim hRgnSrc2 As IntPtr
Dim mode As RegionCombineMode
Dim returnValue As RegionComplexity
returnValue = Gdi32.CombineRgn(hRgnDst,
hRgnSrc1, hRgnSrc2, mode)
public:
[DllImportAttribute(L"GDI32.dll", SetLastError = true)]
static RegionComplexity CombineRgn(
IntPtr hRgnDst,
IntPtr hRgnSrc1,
IntPtr hRgnSrc2,
RegionCombineMode mode
)
[<DllImportAttribute("GDI32.dll", SetLastError = true)>]
static member CombineRgn :
hRgnDst : IntPtr *
hRgnSrc1 : IntPtr *
hRgnSrc2 : IntPtr *
mode : RegionCombineMode -> RegionComplexity
No code example is currently available or this language may not be supported.
- hRgnDst IntPtr
-
A handle to a new region with dimensions defined by combining two other regions.
(This region must exist before CombineRgn(IntPtr, IntPtr, IntPtr, RegionCombineMode) is called.)
- hRgnSrc1 IntPtr
-
A handle to the first of two regions to be combined.
- hRgnSrc2 IntPtr
-
A handle to the second of two regions to be combined.
- mode RegionCombineMode
-
A mode indicating how the two regions will be combined.
RegionComplexity
The return value specifies the type of the resulting region.
If the
hRgnDst,
hRgnSrc1 or
hRgnSrc2
parameters does not identify a valid region, the return value is
Error.