rotating image in Javafx
<p>With what reference point does <code>ImageView.setRotate(40)</code> rotates the image in Javafx ?</p>

<p>I am writing</p>

<pre><code>ImageView iv = new ImageView(image);
iv.setRotate(40);
SnapshotParameters params = new SnapshotParameters();
params.setFill(Color.TRANSPARENT);
Image rotatedImage = iv.snapshot(params, null);
gc.drawImage(rotatedImage, 0, 0);
</code></pre>

<p>But the image doesn't rotates with respect to the center of the image.</p>