public static void FillRoundedRectangle(
this Graphics graphics,
Brush brush,
RectangleF bounds,
float cornerRadius
)
<ExtensionAttribute>
Public Shared Sub FillRoundedRectangle (
graphics As Graphics,
brush As Brush,
bounds As RectangleF,
cornerRadius As Single
)
public:
[ExtensionAttribute]
static void FillRoundedRectangle(
Graphics^ graphics,
Brush^ brush,
RectangleF bounds,
float cornerRadius
)
[<ExtensionAttribute>]
static member FillRoundedRectangle :
graphics : Graphics *
brush : Brush *
bounds : RectangleF *
cornerRadius : float32 -> 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.