Skip to content

PathGeometry.FromRoundedRect method (1 of 5)

Creates a closed rounded-rectangle path with equal corner radii.

public static PathGeometry FromRoundedRect(Rect rect, double radius)

PathGeometry.FromRoundedRect method (2 of 5)

Section titled “PathGeometry.FromRoundedRect method (2 of 5)”

Creates a closed rounded-rectangle path with independent X/Y corner radii.

public static PathGeometry FromRoundedRect(Rect rect, double radiusX, double radiusY)

PathGeometry.FromRoundedRect method (3 of 5)

Section titled “PathGeometry.FromRoundedRect method (3 of 5)”

Creates a closed rounded-rectangle path with four independently specified corner radii. Corner radii are specified as (topLeft, topRight, bottomRight, bottomLeft) X radii; Y radii default to the same value as X radii.

public static PathGeometry FromRoundedRect(Rect rect, double topLeftRadius, double topRightRadius,
double bottomRightRadius, double bottomLeftRadius)

PathGeometry.FromRoundedRect method (4 of 5)

Section titled “PathGeometry.FromRoundedRect method (4 of 5)”

Creates a closed rounded-rectangle path with independent X/Y corner radii.

public static PathGeometry FromRoundedRect(double x, double y, double w, double h, double rx,
double ry)

PathGeometry.FromRoundedRect method (5 of 5)

Section titled “PathGeometry.FromRoundedRect method (5 of 5)”

Creates a closed rounded-rectangle path with four independent per-corner radii.

public static PathGeometry FromRoundedRect(double x, double y, double w, double h, double tlx,
double tly, double trx, double tRy, double brx, double bry, double blx, double bly)