---
title: "get_ctm method"
url: "https://reference.aspose.com/svg/python-net/aspose.svg/svgforeignobjectelement/get_ctm/"
product: "Aspose.SVG 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.svg`](../../)
* class [`SVGForeignObjectElement`](/svg/python-net/aspose.svg/svgforeignobjectelement)
* class [`SVGMatrix`](/svg/python-net/aspose.svg.datatypes/svgmatrix)
