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

[lcms] ColorConvertOp: Alpha channel is not transferred from source to destination.

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b87
    • CPU:
      generic
    • OS:
      generic

      Description

      In case of openjdk, ColorComverOp does not transfer alpha channel
      from a source image to a destination image. Attached test demonstrates
      the problem.

      Although specification for the ColorConvertOp class does not define
      how alpha channel should be handled, the oracle jdk (which is based
      on kcms) transfers the alpha correctly. So, current behavior of openjdk
      can be interpreted as a bug.

        Issue Links

          Activity

          Hide
          bae Andrew Brygin added a comment -
          Lcms color transform routine ignores any non-color channels in processed images.
          So if destination image has alpha, then we either have to fall back to per-pixel image
          processing (which handles alpha correctly) or need to provide a helper routine on native
          layer to populate alpha channel in a destination image correctly.
          Show
          bae Andrew Brygin added a comment - Lcms color transform routine ignores any non-color channels in processed images. So if destination image has alpha, then we either have to fall back to per-pixel image processing (which handles alpha correctly) or need to provide a helper routine on native layer to populate alpha channel in a destination image correctly.
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/b59b1f5a98dd
          User: bae
          Date: 2013-04-15 12:59:36 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8/2d/jdk/rev/b59b1f5a98dd User: bae Date: 2013-04-15 12:59:36 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/b59b1f5a98dd
          User: lana
          Date: 2013-04-23 16:55:28 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/b59b1f5a98dd User: lana Date: 2013-04-23 16:55:28 +0000

            People

            • Assignee:
              bae Andrew Brygin
              Reporter:
              bae Andrew Brygin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: