Grasshopper API
GH_CapsuleRenderEngineCreateRoundedRectangle Method (RectangleF, Single) |
Static (Shared in VB) method for creating rectangles with rounded corners.
Namespace: Grasshopper.GUI.Canvas
Assembly: Grasshopper (in Grasshopper.dll)

public static GraphicsPath CreateRoundedRectangle( RectangleF rec, float radius )
Public Shared Function CreateRoundedRectangle ( rec As RectangleF, radius As Single ) As GraphicsPath
Parameters
- rec
- Type: System.DrawingRectangleF
Rectangle to fillet. Rectangles smaller than 3 pixels wide/high will be grown. - radius
- Type: SystemSingle
Radius of corner fillets.
Return Value
Type: GraphicsPathGraphics path that describes the rounded rectangle.
