JavaFX Limits to zoomfunction

hello_123321

Neues Mitglied
Hello :)

I try to implement a zoomIn and zoomOut function on a Scrollpane including an ImageView. Now i have the following Problem: I don't have any limits when zooming or paning. How can I implement borders to my scrollpane. I'd like to define borders around the image.

Screenshot as an example of the problem:
upload_2018-12-30_19-54-27.png

What I like to have: The picture shoud fit my window.
upload_2018-12-30_19-55-32.png

Can anyone help me with this? Code is in the appendix.
Thanks :)
 

Anhänge

  • ZoomOutofImage.txt
    2 KB · Aufrufe: 1

Neue Themen


Oben