MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / transform

Method transform

src/__init__.py:14812–14817  ·  view source on GitHub ↗

Replace with the transformation by matrix-like m.

(self, m)

Source from the content-addressed store, hash-verified

14810 )
14811
14812 def transform(self, m):
14813 """Replace with the transformation by matrix-like m."""
14814 if not len(m) == 6:
14815 raise ValueError("Matrix: bad seq len")
14816 self.x0, self.y0, self.x1, self.y1 = util_transform_rect(self, m)
14817 return self
14818
14819 @property
14820 def width(self):

Callers 2

__mul__Method · 0.95
__truediv__Method · 0.95

Calls 1

util_transform_rectFunction · 0.85

Tested by

no test coverage detected