public static void setImageView(ImageView iv) { imageView = iv; angle = imageView.getRotate(); imageView.setRotate(0); image = SwingFXUtils.toFXImage( SwingFXUtils.fromFXImage(imageView.snapshot(null, null), null), null); }
private static Image getImage() { BufferedImage image = SwingFXUtils.fromFXImage(imageView.snapshot(null, null), null); return SwingFXUtils.toFXImage(image, null); }