Native height of this image, calculated from its height in pixels and vertical dots per inch (dpi).
(self)
| 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): |