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

Not mapping proper index of Color Pallete to inverse color table in ByteIndexed BufferedImage

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7, 8, 9
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • Understanding:
      Cause Known
    • CPU:
      generic
    • OS:
      generic

      Description

      While we are generating inverse look up table from colormap in byteindexed bufferedimage.

      We are populating colormap indices into InverseLUT starting from 0 and 255 to middle of color map indices. We populate any particular index if we find any value with offset of +/-7 from the ideal R,G,B values. Later if there is any index in colormap which represents a particular color more accurately we are not overwriting the colormap index in InverseLUT which is not proper.

      Attached test case represents problem with default byte indexed color map and white color where we are selecting white color index from end of cmap which is actually gray increment value(252,252,252) stored at index 255 instead of using proper white value(255,255,255) from index 215.

      After fixing this issue check test case in JDK-7116979 for verification of white color also.

        Attachments

          Activity

            People

            Assignee:
            jdv Jayathirth D V
            Reporter:
            jdv Jayathirth D V
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: