Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: void DrawRoundedRectangle(this Graphics, Pen, float, float, float, float, float, bool)

Declaration

public static void DrawRoundedRectangle(
    this Graphics g,
    Pen pen,
    float x,
    float y,
    float width,
    float height,
    float radius,
    bool tolerant = false
)

Summary

Draws a rounded rectangle.

Parameters

this Graphicsg Graphics object to draw on.
Penpen Pen to use when drawing the rounded rectangle.
floatx Left edge of the rounded rectangle.
floaty Top edge of the rounded rectangle.
floatwidth Width of the rounded rectangle.
floatheight Height of the rounded rectangle.
floatradius Radius of the rounding of each corner of the rectangle.
booltolerant If true, the radius is reduced if it is too large to fit into the specified size. Otherwise, an exception is thrown.