Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+8 votes

Does anyone know how to make images scale? Right now app works in full screen well but if you window it and make it smaller the background image stays full size so you just see a small section of it.

asked in CSC 305 Fall 2024 by (630 points)

2 Answers

+3 votes

Have you tried unchecking the "Smooth" and "Preserve Ratio" boxes under properties for your image view object in Scene Builder?

answered by (1.6k points)
+2 votes

I think you might need to set the BackgroundSize to something like new BackgroundSize(100, 100, true, true, true, false) to make it scale.

answered by (1.2k points)
...