def inchToMm(inch): return inch * constants.MM_IN_INCH()
def pixToMm(pix, dpi): return pix / dpi * constants.MM_IN_INCH()
def mmToInch(mm): return mm / constants.MM_IN_INCH()
def mmToPix(mm, dpi): return mm * dpi / constants.MM_IN_INCH()