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

Method set_dpi

src/__init__.py:14001–14005  ·  view source on GitHub ↗

Set resolution in both dimensions.

(self, xres, yres)

Source from the content-addressed store, hash-verified

13999 return barray
14000
14001 def set_dpi(self, xres, yres):
14002 """Set resolution in both dimensions."""
14003 pm = self.this
14004 pm.m_internal.xres = xres
14005 pm.m_internal.yres = yres
14006
14007 def set_origin(self, x, y):
14008 """Set top-left coordinates."""

Callers 5

get_pixmapMethod · 0.95
saveMethod · 0.95
tobytesMethod · 0.95
get_pixmapMethod · 0.80
get_pixmapFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected