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

Robot.createScreenCapture(boundary) captures extra pixels

XMLWordPrintable

    • generic
    • windows_10

      Robot.createScreenCapture(boundary) captures extra pixels.
      To reproduce run the attached test case, ScreenShotTest.java
      This test displays a frame and capture the screen shot(screenshot.jpg) of that frame using Robot.createScreenCapture(boundary) API.

      You can see it captured some extra area than frame boundary.

      Issue is reproducible in JDK 8, 11 and 13 and this issue is there only in Windows platform. In linux and Osx it works as expected.

        1. screenshot.jpg
          8 kB
          Abdul Kolarkunnu
        2. ScreenShotTest.java
          1 kB
          Abdul Kolarkunnu

            Unassigned Unassigned
            akolarkunnu Abdul Kolarkunnu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: