Rect

Path2D.Rect method

Creates a path for a rectangle at position (x, y) with a size that is determined by width and height.

public void Rect(double x, double y, double w, double h)
Parameter Type Description
x Double The x axis of the coordinate for the rectangle starting point.
y Double The y axis of the coordinate for the rectangle starting point.
w Double The rectangle’s width.
h Double The rectangle’s height.

See Also