
## __init__ {#}

returns a newly instantiated Path2D object



```python
def __init__(self):
    ...
```




## __init__ {#aspose.html.dom.canvas.Path2D}

returns a newly instantiated Path2D object with another path as an argument (creates a copy)



```python
def __init__(self, path):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| path | [`Path2D`](/html/python-net/aspose.html.dom.canvas/path2d) | When invoked with another Path2D object, a copy of the path argument is created |


## __init__ {#str}

returns a newly instantiated Path2D object with a string consisting of SVG path data.



```python
def __init__(self, d):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| d | str | The string consisting of SVG path data |



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