MCPcopy Index your code
hub / github.com/python-openxml/python-docx / default_cy

Method default_cy

src/docx/parts/image.py:39–45  ·  view source on GitHub ↗

Native height of this image, calculated from its height in pixels and vertical dots per inch (dpi).

(self)

Source from the content-addressed store, hash-verified

37
38 @property
39 def default_cy(self):
40 """Native height of this image, calculated from its height in pixels and
41 vertical dots per inch (dpi)."""
42 px_height = self.image.px_height
43 horz_dpi = self.image.horz_dpi
44 height_in_emu = int(round(914400 * px_height / horz_dpi))
45 return Emu(height_in_emu)
46
47 @property
48 def filename(self):

Callers

nothing calls this directly

Calls 1

EmuClass · 0.90

Tested by

no test coverage detected