Always, no matter the size of the node (an Imageview. Also tried with a Pane).
My main issue is that this alters "the original" (via resizing by 1 pixel?) and also offsets it's center.
I wish I could use Imageview.GetImage but I can't because contrary to Imageview.Snapshot, Imageview.GetImage doesn't capture the output of JavaFx's effects (via setEffect method).
I think I could solve my problem by passing some snapshot parameters (i.e. the viewport) to the snapshot method, but I don't know how to handle the Callback part.
Never mind. No need for a callback.
This can also be used :
public void snapshot(SnapshotParameters params, WritableImage image)
Changing the viewport didn't immediately fix my issue, but I'm getting there
Problem solved. The bounds of the node's parent weren't whole numbers. That's what caused my blurry/offset snapshots.
Of note, I also discovered that project attribute #MainFormWidth: X doesn't necessarily equals X.
In my case :
#MainFormWidth: 800
Log(Form1.Width) -> 800.5565185546875