Grasshopper API
GH_CapsuleRenderEngineCreateJaggedRectangle Method |
Static (Shared in VB) method for creating rectangles with rounded corners.
Namespace: Grasshopper.GUI.Canvas
Assembly: Grasshopper (in Grasshopper.dll)
public static GraphicsPath CreateJaggedRectangle( RectangleF rec, float R0, float R1, float R2, float R3, bool jaggedLeft, bool jaggedRight )
Public Shared Function CreateJaggedRectangle ( rec As RectangleF, R0 As Single, R1 As Single, R2 As Single, R3 As Single, jaggedLeft As Boolean, jaggedRight As Boolean ) As GraphicsPath
Parameters
- rec
- Type: System.DrawingRectangleF
Rectangle to fillet. Rectangles smaller than 3 pixels wide/high will be grown. - R0
- Type: SystemSingle
Radius of upper left corner. Zero or negative values omit fillets. - R1
- Type: SystemSingle
Radius of upper right corner. Zero or negative values omit fillets. - R2
- Type: SystemSingle
Radius of lower right corner. Zero or negative values omit fillets. - R3
- Type: SystemSingle
Radius of lower left corner. Zero or negative values omit fillets. - jaggedLeft
- Type: SystemBoolean
If true, the left edge of the rectangle will be jagged and R0 and R3 will be ignored. - jaggedRight
- Type: SystemBoolean
If true, the right edge of the rectangle will be jagged and R1 and R2 will be ignored.
Return Value
Type: GraphicsPathGraphics path that describes the rounded rectangle.