code: public boolean matches(long minWidth, long minHeight, long maxWidth, long maxHeight, double ratio) {
      if (minWidth > 0 && getWidth() < minWidth) {
        return false;
      }
      if (minHeight > 0 && getHeight() < minHeight) {
        return false;
      }
      if (maxWidth > 0 && getWidth() > maxWidth) {
        return false;
      }
      if (maxHeight > 0 && getHeight() > maxHeight) {
        return false;
      }
      if (ratio > 0) {
        double renditionRatio = (double)getWidth() / (double)getHeight();
        if (!Ratio.matches(renditionRatio, ratio)) {
          return false;
        }
      }
      return true;
    }
docs: Checks if this rendition matches the given width/height/ration restrictions.
  @param minWidth Min. width
  @param minHeight Min. height
  @param maxWidth Max. width
  @param maxHeight Max. height
  @param ratio Ratio
  @return true if matches