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