ClipPathBuilder.Rectangle

ClipPathBuilder.Rectangle method

Defines a rectangular clip path with optional rounded corners.

public ClipPathBuilder Rectangle(double x, double y, double width, double height, double rx = 0m, 
    double ry = 0m, LengthType type = LengthType.Px)
ParameterTypeDescription
xDoubleX-coordinate of the top-left corner of the rectangle.
yDoubleY-coordinate of the top-left corner of the rectangle.
widthDoubleWidth of the rectangle.
heightDoubleHeight of the rectangle.
rxDoubleHorizontal radius of the corners.
ryDoubleVertical radius of the corners.
typeLengthTypeThe unit type for the dimensions.

Return Value

The current instance of ClipPathBuilder for method chaining.

See Also