code: public double getRatio() {
  
          double ratio = 1;
          if ((getTargetWidth() == -1) || (getTargetHeight() == -1)) {
              ratio = (double)getOrgWidth() / getOrgHeight();
          } else {
              ratio = (double)getTargetWidth() / getTargetHeight();
          }
          return ratio;
      }
docs: Returns the resulting image ratio.<p>
  
  @return the image ratio