Gdi32OffsetRgn Method

Moves a region by the specified offsets.

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 OffsetRgn(
	IntPtr hRgn,
	int x,
	int y
)

Parameters

hRgn  IntPtr
Handle to the region to be moved.
x  Int32
Specifies the number of logical units to move left or right.
y  Int32
Specifies the number of logical units to move up or down.

Return Value

RegionComplexity
The return value specifies the new region's complexity.

If the hRgn parameter does not identify a valid region, the return value is Error.

Remarks

See Also