public Path AddRoundedRectangle(
RectangleF bounds,
float radiusTopLeft,
float radiusTopRight,
float radiusBottomRight,
float radiusBottomLeft
)
Public Function AddRoundedRectangle (
bounds As RectangleF,
radiusTopLeft As Single,
radiusTopRight As Single,
radiusBottomRight As Single,
radiusBottomLeft As Single
) As Path
public:
Path^ AddRoundedRectangle(
RectangleF bounds,
float radiusTopLeft,
float radiusTopRight,
float radiusBottomRight,
float radiusBottomLeft
)
member AddRoundedRectangle :
bounds : RectangleF *
radiusTopLeft : float32 *
radiusTopRight : float32 *
radiusBottomRight : float32 *
radiusBottomLeft : float32 -> Path
The rounded rectangle is added as a new closed figure.
If any of the corner radius parameters is negative, the absolute value will be used. If the sum of any adjacent corner radius parameters is greater than the corresponding side of the bounding rectangle, then all corner radius parameters will be scaled down proportionally to fit into the bounding rectangle.
The coordinates of the specified bounding rectangle are not validated here but in the moment of drawing the coordinates of the possibly transformed path points must fall into the bounds of an int value; otherwise, an OverflowException will be thrown.