Peter Penzov
Peter Penzov

Reputation: 1754

Zoom into picture

I have this picture which I want to display into JavaFX application.

enter image description here

I tested to use setFitHeight and setFitWidth but the image is shrink. I want to zoom the original picture and display only the center of the image keeping the original size. Is this possible?

Upvotes: 0

Views: 222

Answers (1)

jewelsea
jewelsea

Reputation: 159586

Define a viewport in an ImageView.

Upvotes: 2

Related Questions