
## rect {#float-float-float-float}





```python
def rect(self, x, y, w, h):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| x | float |  |
| y | float |  |
| w | float |  |
| h | float |  |



### See Also
* module [`aspose.html.dom.canvas`](../../)
* class [`ICanvasRenderingContext2D`](/html/python-net/aspose.html.dom.canvas/icanvasrenderingcontext2d)
