Gdi32CombineRgn Method

Combines two regions and stores the result in a third region.

The two regions are combined according to the specified mode.

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 RegionComplexity CombineRgn(
	IntPtr hRgnDst,
	IntPtr hRgnSrc1,
	IntPtr hRgnSrc2,
	RegionCombineMode mode
)

Parameters

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.

Return Value

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.

Remarks

See Also