MCPcopy Index your code
hub / github.com/WhyNotHugo/python-barcode / mm2px

Function mm2px

barcode/writer.py:45–46  ·  view source on GitHub ↗
(mm: float, dpi: int)

Source from the content-addressed store, hash-verified

43
44
45def mm2px(mm: float, dpi: int) -> float:
46 return (mm * dpi) / 25.4
47
48
49def pt2mm(pt: float) -> float:

Callers 3

_initMethod · 0.85
_paint_moduleMethod · 0.85
_paint_textMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected