Gdi32CreateRoundRectRgn Method
Creates a rectangular region with rounded corners.
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")]
public static IntPtr CreateRoundRectRgn(
int leftRect,
int topRect,
int rightRect,
int bottomRect,
int widthEllipse,
int heightEllipse
)
<DllImportAttribute("GDI32.dll">]
Public Shared Function CreateRoundRectRgn (
leftRect As Integer,
topRect As Integer,
rightRect As Integer,
bottomRect As Integer,
widthEllipse As Integer,
heightEllipse As Integer
) As IntPtr
Dim leftRect As Integer
Dim topRect As Integer
Dim rightRect As Integer
Dim bottomRect As Integer
Dim widthEllipse As Integer
Dim heightEllipse As Integer
Dim returnValue As IntPtr
returnValue = Gdi32.CreateRoundRectRgn(leftRect,
topRect, rightRect, bottomRect, widthEllipse,
heightEllipse)
public:
[DllImportAttribute(L"GDI32.dll")]
static IntPtr CreateRoundRectRgn(
int leftRect,
int topRect,
int rightRect,
int bottomRect,
int widthEllipse,
int heightEllipse
)
[<DllImportAttribute("GDI32.dll")>]
static member CreateRoundRectRgn :
leftRect : int *
topRect : int *
rightRect : int *
bottomRect : int *
widthEllipse : int *
heightEllipse : int -> IntPtr
No code example is currently available or this language may not be supported.
- leftRect Int32
-
The x-coordinate of the upper-left corner of the region in device units.
- topRect Int32
-
The y-coordinate of the upper-left corner of the region in device units.
- rightRect Int32
-
The x-coordinate of the lower-right corner of the region in device units.
- bottomRect Int32
-
The y-coordinate of the lower-right corner of the region in device units.
- widthEllipse Int32
-
The width of the ellipse used to create the rounded corners in device units.
- heightEllipse Int32
-
The height of the ellipse used to create the rounded corners in device units.
IntPtr
If the function succeeds, the return value is the handle to the region.
If the function fails, the return value is
Zero.