public PerspectiveImage(Image image) { ImageView imageView = new ImageView(image); imageView.setEffect(ReflectionBuilder.create().fraction(REFLECTION_SIZE).build()); setEffect(transform); Rectangle rec = new Rectangle(image.getWidth(), image.getHeight()); rec.setArcHeight(150); rec.setArcWidth(150); imageView.setClip(rec); getChildren().addAll(imageView); }
public PerspectiveImage(Image image) { ImageView imageView = new ImageView(image); imageView.setEffect(ReflectionBuilder.create().fraction(REFLECTION_SIZE).build()); setEffect(transform); getChildren().addAll(imageView); }