Gimp.Unit.get_factor

@accepts(Gimp.Unit)
@returns(float)
def get_factor(self):
    # Python wrapper for gimp_unit_get_factor()
  

A Gimp.Unit's @factor is defined to be:

distance_in_units == (@factor * distance_in_inches)

Returns 0 for self == GIMP_UNIT_PIXEL.

self

The unit you want to know the factor of.

Returns