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

drawRenderedImage translates incorrectly in the presence of clipping

    XMLWordPrintable

Details

    • 2d
    • 1.2.2
    • generic
    • solaris_2.5.1

    Description

      When using the Graphics2D.drawRenderedImage() call, all is well when the
      clipping region encompasses the entire canvas. However, when this is not the
      case, the image is drawn with its upper-left corner starting at the bounds
      of the clipping region. This results in incorrect repaints.

      A test program contrasting the behavior of drawRenderedImage when its argument
      is a BufferedImage (yielding correct behavior) and when it is not is provided.
      To compile:

      javac -classpath jai.jar:. Test.java

      To run:

      java -classpath jai.jar:. Test

      Drag an obscuring window over the display; the left side will refresh incorrectly while the right side will correctly repair itself.

      Attachments

        Activity

          People

            jehung Jeannette Hung
            dricesunw Daniel Rice (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: