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

[Windows] HiDPI screenshot artifacts using glass Robot

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9, 10
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: