Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
45
def
mm2px(mm: float, dpi: int) -> float:
46
return
(mm * dpi) / 25.4
47
48
49
def
pt2mm(pt: float) -> float:
Callers
3
_init
Method · 0.85
_paint_module
Method · 0.85
_paint_text
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected