This content has been marked as final. Show 2 replies
What I usually do to get the "original" snapshot is by setting the transparent color for the fill:
I also never pass null as parameters for the snapshot method because it will "fill" the given one.
SnapshotParameters params = new SnapshotParameters(); params.setFill(Color.TRANSPARENT); WritableImage wImg = new WritableImage(width, height); wImg = g.snapshot(params, wImg);
I tried params.setFill(Color.TRANSPARENT), and the snaphot has indeed transparent background in such a case, but the underlying image is still lost. If the original image was visible in your case, then perhaps it is an inconsistency between platforms? I use Linux, Java 1.7.0_05. If you'd describe your platform, I could post a bug report.