public static void FillRoundedRectangle(
this Graphics graphics,
Brush brush,
Rectangle bounds,
int cornerRadius
)
<ExtensionAttribute>
Public Shared Sub FillRoundedRectangle (
graphics As Graphics,
brush As Brush,
bounds As Rectangle,
cornerRadius As Integer
)
public:
[ExtensionAttribute]
static void FillRoundedRectangle(
Graphics^ graphics,
Brush^ brush,
Rectangle bounds,
int cornerRadius
)
[<ExtensionAttribute>]
static member FillRoundedRectangle :
graphics : Graphics *
brush : Brush *
bounds : Rectangle *
cornerRadius : int -> unit
If cornerRadius is negative, the absolute value will be used. If it is greater than the half of the smaller side of the bounding rectangle, it will be adjusted to the half of the smaller side, so the result will be an oval shape. If the cornerRadius is 0, a simple filled rectangle will be drawn.