Open caprica opened 4 years ago
Well, not so simple as the linked issue because the JavaFX solution is relying on certain ImageView behaviours (like preserveAspectRatio). So, a bit trickier indeed.
Probably need to manually calculate the scale and use imageView.setScaleX and imageView.setScaleY.
This is a bit trickier than in vlcj itself because the source image/buffer dimensions are not as readily available.
e.g. for playing DVD.
See https://github.com/caprica/vlcj/issues/986.
It should be quite simple to port the solution from there.