PeachDrawing.Core
PeachDrawing.Core.Geometry.PathShapes
PathShapes.AddRoundedRectangle Method
| Overloads | |
|---|---|
| AddRoundedRectangle(this GraphicsPath, Rect, double) | Adds a rectangle with the same circular radius on every corner. |
| AddRoundedRectangle(this GraphicsPath, Rect, double, double, double, double, double, double, double, double) | Adds a rectangle whose four corners are each rounded by their own elliptical radii (the shape of a CSS border-radius). A corner with a zero radius on both axes stays square. The caller is responsible for radii that fit inside rect: they are used as given. |
PathShapes.AddRoundedRectangle(this GraphicsPath, Rect, double) Method
Adds a rectangle with the same circular radius on every corner.
public static void AddRoundedRectangle(this PeachDrawing.Core.GraphicsPath path, PeachDrawing.Core.Rect rect, double radius);
Parameters
path GraphicsPath
the path to add to
rect Rect
the rectangle’s bounds
radius System.Double
the corner radius
PathShapes.AddRoundedRectangle(this GraphicsPath, Rect, double, double, double, double, double, double, double, double) Method
Adds a rectangle whose four corners are each rounded by their own elliptical radii (the shape of a CSS
border-radius). A corner with a zero radius on both axes stays square. The caller is responsible for radii that
fit inside rect: they are used as given.
public static void AddRoundedRectangle(this PeachDrawing.Core.GraphicsPath path, PeachDrawing.Core.Rect rect, double topLeftX, double topLeftY, double topRightX, double topRightY, double bottomRightX, double bottomRightY, double bottomLeftX, double bottomLeftY);
Parameters
path GraphicsPath
the path to add to
rect Rect
the rectangle’s bounds
topLeftX System.Double
the top-left corner’s horizontal radius
topLeftY System.Double
the top-left corner’s vertical radius
topRightX System.Double
the top-right corner’s horizontal radius
topRightY System.Double
the top-right corner’s vertical radius
bottomRightX System.Double
the bottom-right corner’s horizontal radius
bottomRightY System.Double
the bottom-right corner’s vertical radius
bottomLeftX System.Double
the bottom-left corner’s horizontal radius
bottomLeftY System.Double
the bottom-left corner’s vertical radius