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

Offscreen rendering is different from onscreen one

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 8, 9, 10
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Subcomponent:
      2d
    • CPU:
      x86_64
    • OS:
      windows_7

      Description

      For debugging purposes I was rendering frames to the offscreen image using their paint(Graphics) method as following:

      Window w;
      BufferedImage img = new BufferedImage(w.getWidth(), w.getHeight(), BufferedImage.TYPE_INT_ARGB);
      Graphics g = img.getGraphics();
      w.paint(g);
      g.dispose();

      What I've observed, that on Windows 7 I'm getting different rendering of the same window. Please compare my screenshot and result of paint() method invocation. You can notice:
      1. Checkboxes are rendered differently, there are rendering artefacts on their borders on the real screenshot.
      2. Clipping is not enforced on some parts of the checkboxes when rendered using "paint" method to the offscreen buffer.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              mrkam Alexander Kuznetcov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated: