ICanvasRenderingContext2D.FillRect

ICanvasRenderingContext2D.FillRect method

Draws a filled rectangle at (x, y) position whose size is determined by width and height.

public void FillRect(double x, double y, double w, double h)
ParameterTypeDescription
xDoubleThe x axis of the coordinate for the rectangle starting point.
yDoubleThe y axis of the coordinate for the rectangle starting point.
wDoubleThe rectangle’s width.
hDoubleThe rectangle’s height.

See Also