---
title: "get_ctm method"
url: "https://reference.aspose.com/html/python-net/aspose.html.dom.svg/svgforeignobjectelement/get_ctm/"
product: "Aspose.HTML for Python via .NET API References"
---


## get_ctm {#}

Returns the transformation matrix from current user units (i.e., after application of the ‘transform’ attribute, if any) to the viewport coordinate system for the nearestViewportElement.


### Returns 


An SVGMatrix object that defines the CTM.


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





### See Also
* module [`aspose.html.dom.svg`](../../)
* class [`SVGForeignObjectElement`](/html/python-net/aspose.html.dom.svg/svgforeignobjectelement)
* class [`SVGMatrix`](/html/python-net/aspose.html.dom.svg.datatypes/svgmatrix)
