Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8091533

Add API for creating scaled clone of Image

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8u40
    • javafx
    • None
    • Win 8, 64 Bit, JDK 8u40

      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)

            Unassigned Unassigned
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Imported: