我需要一个函数。
import javafx.scene.image.Image;
private Image cropImage(Image image) {
// Cut Image to max Circle or square
return Image;
}
重要的是我不想改变图像的比例,而是在图像中间切掉最大的圆形或正方形。 我已经尝试这样做了两天了。 你能帮我解决这个问题吗?
非常感谢。雷内
答案 0 :(得分:1)
像这样:
Uncaught ReferenceError: nextQuestion is not defined at HTMLButtonElement.onclick
答案 1 :(得分:0)
您可以通过 setClip
的 ImageView
方法执行此操作。