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

Grayscale TYPE_CUSTOM BufferedImages are rendered lighter than TYPE_BYTE_GRAY

XMLWordPrintable

    • 2d
    • x86, sparc
    • solaris_8, solaris_9, windows_2000, windows_xp

        A TYPE_CUSTOM BufferedImage with the same SampleModel, ColorModel and pixel data as a TYPE_BYTE_GRAY BufferedImage is rendered differently (it shows up a lighter gray). A test case that demonstrates this is attached.

        The Java Advanced Imaging API (JAI) uses a custom subclass of WritableRaster in some instances, which when converted to a BufferedImage, results in a TYPE_CUSTOM BufferedImage, causing lighter rendering to be noticed by customers. This issue was reported by a JAI customer:

        http://archives.java.sun.com/cgi-bin/wa?A2=ind0405&L=jai-interest&F=&S=&P=1121

              psadhukhan Prasanta Sadhukhan
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: