def mm2px(value, dpi=300):
    """Converts the given value in millimeters into dots per inch.

    Args:
        value(float): value, in millimeters.
        dpi (int): resolution, in dots per inch.

    Returns:
        (float): value, in dots per inch.
    """
    return value * dpi / 25.4
