Class SafeRegionHandle
A hRegion SafeHandle implementation
Inherited Members
Namespace: Dapplo.Windows.Gdi32.SafeHandles
Assembly: Dapplo.Windows.Gdi32.dll
Syntax
public class SafeRegionHandle : SafeObjectHandle
Constructors
| Improve this Doc View SourceSafeRegionHandle()
Default constructor is needed to support marshalling!!
Declaration
public SafeRegionHandle()
SafeRegionHandle(IntPtr)
Create a SafeRegionHandle from an existing handle
Declaration
public SafeRegionHandle(IntPtr preexistingHandle)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | preexistingHandle | IntPtr to region |
Methods
| Improve this Doc View SourceCreateRectRgn(Int32, Int32, Int32, Int32)
Directly call Gdi32.CreateRectRgn
Declaration
public static SafeRegionHandle CreateRectRgn(int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | |
System.Int32 | top | |
System.Int32 | right | |
System.Int32 | bottom |
Returns
Type | Description |
---|---|
SafeRegionHandle | SafeRegionHandle |