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

Method n

src/__init__.py:13684–13694  ·  view source on GitHub ↗

The size of one pixel.

(self)

Source from the content-addressed store, hash-verified

13682
13683 @property
13684 def n(self):
13685 """The size of one pixel."""
13686 if g_use_extra:
13687 # Setting self.__class__.n gives a small reduction in overhead of
13688 # test_general.py:test_2093, e.g. 1.4x -> 1.3x.
13689 #return extra.pixmap_n(self.this)
13690 def n2(self):
13691 return extra.pixmap_n(self.this)
13692 self.__class__.n = property(n2)
13693 return self.n
13694 return mupdf.fz_pixmap_components(self.this)
13695
13696 def pdfocr_save(self, filename, compress=1, language=None, tessdata=None):
13697 '''

Callers 10

__init__Method · 0.45
is_unicolorMethod · 0.45
set_pixelMethod · 0.45
set_rectMethod · 0.45
extractIMGINFOMethod · 0.45
JM_color_countFunction · 0.45
JM_image_profileFunction · 0.45
_make_image_dictFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected