Converts a value specified in unit to points.
value
unit
value in units
unit of value
resolution in DPI
value converted to points.