I am currently trying to center an image in an ImageView using JavaFX.
So I load the image in the view :
Image img = new Image("...");
imageView.setImage(img);
and let's suppose the image is huge (2000x3000) and not the ImageView (400x100)
The rendered image will be aligned on the left, and I would like to put in the center of the ImageView :
Is there anyway to perform that ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…