public static void AddRoundedRectangle(
this GraphicsPath path,
RectangleF bounds,
float cornerRadius
)<ExtensionAttribute>
Public Shared Sub AddRoundedRectangle (
path As GraphicsPath,
bounds As RectangleF,
cornerRadius As Single
)public:
[ExtensionAttribute]
static void AddRoundedRectangle(
GraphicsPath^ path,
RectangleF bounds,
float cornerRadius
)[<ExtensionAttribute>]
static member AddRoundedRectangle :
path : GraphicsPath *
bounds : RectangleF *
cornerRadius : float32 -> unit The rounded rectangle is added as a new closed figure.
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 rectangle will be added.