[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static GraphicsPath RoundCorners(
this Rectangle rect,
int cornerRadius
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function RoundCorners (
rect As Rectangle,
cornerRadius As Integer
) As GraphicsPath
Dim rect As Rectangle
Dim cornerRadius As Integer
Dim returnValue As GraphicsPath
returnValue = rect.RoundCorners(cornerRadius)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static GraphicsPath^ RoundCorners(
Rectangle rect,
int cornerRadius
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member RoundCorners :
rect : Rectangle *
cornerRadius : int -> GraphicsPath
No code example is currently available or this language may not be supported.
[Missing <returns> documentation for "M:DevCase.Extensions.RectangleExtensions.RectangleExtensions.RoundCorners(System.Drawing.Rectangle,System.Int32)"]
No code example is currently available or this language may not be supported.
Dim rect As New Rectangle(New Point(0, 0), New Size(256, 256))
Dim radius As Integer = 10
Dim roundedRect As GraphicsPath = RoundCorners(rect, radius)
Using g As Graphics = Me.CreateGraphics(),
pen As New Pen(Color.Red)
g.DrawPath(pen, roundedRect)
End Using
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.