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

createScreenCapture not working as expected on multimonitor setup with different DPI scales.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • 9
    • client-libs
    • b161
    • generic
    • generic

    Backports

      Description



        Test case Attached.

        On Windows8.1:
        Primary monitor(screen0) 192DPI
        Secondary monitor(screen1) 144DPI
        When the frame is on screen0: works as expected, created screenshots contain the frame.
        when the frame is on screen1: created screenshots do not contain the frame.
         It could be because the screenshot method uses scale 2 as on the first screen instead 1.5 that is actual scale on the second screen. So the region where the screenshot is taken is shifted.

        On Linux: Not Tested.

        On MacOS Sierra version 10.12:
        Tested dual monitor setup with primary Retina display and connecting a secondary monitor non-Retina display. keeping secondary monitor to the right/left of main display and targeted rectangle on each sides, expected results are obtained.


        Attachments

          Issue Links

            Activity

              People

                alexsch Alexandr Scherbatiy
                pkbalakr Prem Balakrishnan (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: