Gdi32CreateRoundRectRgn Method

Creates a rectangular region with rounded corners.

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")]
public static IntPtr CreateRoundRectRgn(
	int leftRect,
	int topRect,
	int rightRect,
	int bottomRect,
	int widthEllipse,
	int heightEllipse
)

Parameters

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.

Return Value

IntPtr
If the function succeeds, the return value is the handle to the region.

If the function fails, the return value is Zero.

Remarks

See Also