Helpers.RoundRect Method
public static GraphicsPath RoundRect( float x, |
float num = Math.Min(w, h) * ( float )r; |
GraphicsPath graphicsPath; |
GraphicsPath result = graphicsPath = new GraphicsPath(); |
graphicsPath.AddArc(x, y, |
graphicsPath.AddLine(x, y, x, y); |
graphicsPath.AddArc(num2 - num, y, |
graphicsPath.AddLine(num2, y, |
graphicsPath.AddArc(num2 - num, |
graphicsPath.AddLine(num2, num3, |
graphicsPath.AddArc(x, num3 - num, |
graphicsPath.AddLine(x, num3, x, num3); |
graphicsPath.CloseFigure(); |
This language is not supported or no code example is available.
.NET Framework
Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
.NET Core
Supported in: 5.0+, 6.0+