public Path AddRoundedRectangle(
float x,
float y,
float width,
float height,
float radiusTopLeft,
float radiusTopRight,
float radiusBottomRight,
float radiusBottomLeft
)Public Function AddRoundedRectangle (
x As Single,
y As Single,
width As Single,
height As Single,
radiusTopLeft As Single,
radiusTopRight As Single,
radiusBottomRight As Single,
radiusBottomLeft As Single
) As Pathpublic:
Path^ AddRoundedRectangle(
float x,
float y,
float width,
float height,
float radiusTopLeft,
float radiusTopRight,
float radiusBottomRight,
float radiusBottomLeft
)member AddRoundedRectangle :
x : float32 *
y : float32 *
width : float32 *
height : float32 *
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.