code: public boolean matches(long checkWidth, long checkHeight) {
      if (checkWidth != 0 && checkWidth != getWidth()) {
        return false;
      }
      if (checkHeight != 0 && checkHeight != getHeight()) {
        return false;
      }
      return true;
    }
docs: Checks if this rendition matches the given width/height.
  @param checkWidth Width
  @param checkHeight Height
  @return true if matches