Sometimes applications need to get scaled versions of Images already loaded. For example, an image processing application might like to show thumbnails of processed images, e. g. to dynamically change a Window's icon according to the currently selected image etc.
The current workaround is to migrate the loaded image into an AWT image, use AWT's scaling), and then migrate back to a JavaFX image.
As a proposal for a future JavaFX release, it would be great if AWT could be omitted, so an API could be added like...
Image.getScaled(double newWidth, double newHeight)
...or...
new Image(Image source, double newWidth, double newHeight)
The current workaround is to migrate the loaded image into an AWT image, use AWT's scaling), and then migrate back to a JavaFX image.
As a proposal for a future JavaFX release, it would be great if AWT could be omitted, so an API could be added like...
Image.getScaled(double newWidth, double newHeight)
...or...
new Image(Image source, double newWidth, double newHeight)