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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7, 8, 9
    • client-libs
    • 2d
    • Cause Known
    • generic
    • generic

      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.

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

              Created:
              Updated: