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

Graphics2D.drawRenderedImage draws images with premultiplied alpha incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: