Gimp.units_to_pixels
function units_to_pixels(value: Number(gdouble), unit: Gimp.Unit, resolution: Number(gdouble)): Number(gdouble) {
// Gjs wrapper for gimp_units_to_pixels()
}
Converts a value specified in unit to pixels.
Since 2.8
- value
value in units
- unit
unit of value
- resolution
resloution in DPI
- Returns
value converted to pixels.