code: public static void getDefaultPivot(Settings settings, Point out) {
          getMovementAreaPosition(settings, tmpRect2);
          Gravity.apply(settings.getGravity(), 0, 0, tmpRect2, tmpRect1);
          out.set(tmpRect1.left, tmpRect1.top);
      }
docs: Calculates default pivot point for scale and rotation.
  
  @param settings Image settings
  @param out Output point