Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 private static Image getImage() {
   BufferedImage image = SwingFXUtils.fromFXImage(imageView.snapshot(null, null), null);
   return SwingFXUtils.toFXImage(image, null);
 }