StrokeRect

ICanvasRenderingContext2D.StrokeRect method

Paints a rectangle which has a starting point at (x, y) and has a w width and an h height onto the canvas, using the current stroke style.

public void StrokeRect(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