Gdi32OffsetRgn Method
Moves a region by the specified offsets.
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 OffsetRgn(
IntPtr hRgn,
int x,
int y
)
<DllImportAttribute("GDI32.dll", SetLastError := true>]
Public Shared Function OffsetRgn (
hRgn As IntPtr,
x As Integer,
y As Integer
) As RegionComplexity
Dim hRgn As IntPtr
Dim x As Integer
Dim y As Integer
Dim returnValue As RegionComplexity
returnValue = Gdi32.OffsetRgn(hRgn,
x, y)
public:
[DllImportAttribute(L"GDI32.dll", SetLastError = true)]
static RegionComplexity OffsetRgn(
IntPtr hRgn,
int x,
int y
)
[<DllImportAttribute("GDI32.dll", SetLastError = true)>]
static member OffsetRgn :
hRgn : IntPtr *
x : int *
y : int -> RegionComplexity
No code example is currently available or this language may not be supported.
- 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.
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.