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

[Windows] HiDPI screenshot artifacts using glass Robot

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 9
    • 9, 10
    • javafx

    Description

      JDK9 b128 + Windows 10 + HiDPI screen (scale > 100% was used).


      Please compile/run the attached test code (TestSnapshot.java + BMPOutputStream.java) using
        -XaddExports:javafx.graphics/com.sun.glass.ui=ALL-UNNAMED
      and compare the following images (all of them are attached):

      - utils.png (screenshot taken via SwingFXUtils) - looks reasonable
      - glassRobot.bmp (screenshot taken by means of glass robot) - NOK (see the artifacts); please note also that HiDPI flag here set to true
      - AWTRobot.bmp (screenshot taken by means of AWT robot) - NOK (the same)

      the image on the screen looks normally.

      When running the same code for scale = 100%, no issues occur (at least the screenshots look reasonable)

      Attachments

        1. 8u102_diff].png
          8u102_diff].png
          251 kB
        2. 8u102_macos.png
          8u102_macos.png
          226 kB
        3. AWTRobot.bmp
          AWTRobot.bmp
          1.03 MB
        4. BMPOutputStream.java
          2 kB
        5. glassRobot.bmp
          glassRobot.bmp
          1.03 MB
        6. ok.png
          ok.png
          662 kB
        7. PerspectiveCameraFixedEyeAsChildTest-fieldOfViewTest.png
          PerspectiveCameraFixedEyeAsChildTest-fieldOfViewTest.png
          240 kB
        8. Test3D.java
          5 kB
        9. TestSnapshot.java
          7 kB
        10. utils.png
          utils.png
          254 kB

        Issue Links

          Activity

            People

              kcr Kevin Rushforth
              avstepan Alexander Stepanov
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: