Gimp.units_to_points

function units_to_points(value: Number(gdouble), unit: Gimp.Unit, resolution: Number(gdouble)): Number(gdouble) {
    // Gjs wrapper for gimp_units_to_points()
}
  

Converts a value specified in unit to points.

Since 2.8

value

value in units

unit

unit of value

resolution

resloution in DPI

Returns

value converted to points.