Graphics2D.drawRenderedImage draws images with premultiplied alpha incorrectly

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: client-libs
    • None
    • 2d
    • beta
    • generic
    • solaris_7

      Drawing a RenderedImage with premultiplied alpha using
      Graphics2D.drawRenderedImage results in garbage. The image data is
      extracted as a Raster which is then wrapped into a BufferedImage. However,
      the 'isAlphaPremultiplied' flag of the BufferedImage constructor is
      always set to false instead of being set to the same value as in the
      original image's ColorModel.

      The existing regression test sun/java2d/SunGrphics2D/DrawRenderedImageTest
      will be extended to display images with and without premultipled alpha.

            Assignee:
            Daniel Rice (Inactive)
            Reporter:
            Daniel Rice (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: