GraphicsPathGetRoundRect Method (RectangleF, Single, Single, Single, Single) |
Creates a rounded rectangle using the specified corner radius
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static IGraphicsPath GetRoundRect(
RectangleF rectangle,
float nwRadius,
float neRadius,
float seRadius,
float swRadius
)
Public Shared Function GetRoundRect (
rectangle As RectangleF,
nwRadius As Single,
neRadius As Single,
seRadius As Single,
swRadius As Single
) As IGraphicsPath
static member GetRoundRect :
rectangle : RectangleF *
nwRadius : float32 *
neRadius : float32 *
seRadius : float32 *
swRadius : float32 -> IGraphicsPath
Parameters
- rectangle
- Type: Eto.DrawingRectangleF
Rectangle to round - nwRadius
- Type: SystemSingle
Radius of the north east corner - neRadius
- Type: SystemSingle
Radius of the north west corner - seRadius
- Type: SystemSingle
Radius of the south east corner - swRadius
- Type: SystemSingle
Radius of the south west corner
Return Value
Type:
IGraphicsPathGraphicsPath with the lines of the rounded rectangle ready to be painted
See Also