+ 1

Zooming in JavaFX??

I'm trying to create a media player in Netbeans using java FX. I already added some basic functionalities but I want to add a zoom feature which zooms in and out of the video being played just like in VLC media player on mouse scrolling. Does anyone know how to implement it??

13th Jun 2018, 8:40 PM
Aditya
Aditya - avatar
3 ответов
+ 1
Did you try to resize the video container? e.g. On scroll wheel up width += 20 height += 20 On scroll whell down width -= 20 height -= 20
13th Jun 2018, 8:45 PM
TurtleShell
TurtleShell - avatar
+ 1
hey TurtleShell, Actually I am trying to resize the mediaView, Is this the correct approach?
13th Jun 2018, 8:50 PM
Aditya
Aditya - avatar
0
I think it should be fine
13th Jun 2018, 9:02 PM
TurtleShell
TurtleShell - avatar