code: private static boolean checkCropRegionContainsFocalPoint(CmsImageScaler scaler, CmsPoint focalPoint) {
  
          if (!scaler.isCropping()) {
              return true;
          }
          double x = focalPoint.getX();
          double y = focalPoint.getY();
          return (scaler.getCropX() <= x)
              && (x < (scaler.getCropX() + scaler.getCropWidth()))
              && (scaler.getCropY() <= y)
              && (y < (scaler.getCropY() + scaler.getCropHeight()));
      }
docs: Helper method to check whether the focal point in the scaler is contained in the scaler's crop region.<p>
  
  If the scaler has no crop region, true is returned.
  
  @param scaler the scaler
  @param focalPoint the focal point to check
  @return true if the scaler's crop region contains the focal point