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

Method prescale

src/__init__.py:8838–8846  ·  view source on GitHub ↗

Calculate pre scaling and replace current matrix.

(self, sx, sy)

Source from the content-addressed store, hash-verified

8836 return self
8837
8838 def prescale(self, sx, sy):
8839 """Calculate pre scaling and replace current matrix."""
8840 sx = float(sx)
8841 sy = float(sy)
8842 self.a *= sx
8843 self.b *= sx
8844 self.c *= sy
8845 self.d *= sy
8846 return self
8847
8848 def preshear(self, h, v):
8849 """Calculate pre shearing and replace current matrix."""

Callers 1

test_matrixFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_matrixFunction · 0.64