title: How to scale an image of javaFX from the center instead of top-left (ImageView)
body: <p>I need to scale or zoom my image, but when I try to scale it, it always has centered in top-left. How can I scale from the center or any other places based on my preference?</p>
  
  <p>Link on the full <a href="https://github.com/danivichkin/demo_GIS" rel="nofollow noreferrer">project</a></p>
  
  <pre><code>@FXML
  void plusButton(ActionEvent event) throws IOException {
      double height = ImageView.getFitHeight();
      double width = ImageView.getFitWidth();
  
      ImageView.setFitHeight(height + 100);
      ImageView.setFitWidth(width + 100);
  
      //TODO
      //Rectangle2D rectangle2D = new Rectangle2D(800, 800, 800, 800);
      //ImageView.setViewport(rectangle2D);
  }
  </code></pre>