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

JDK 1.3fcs and 1.4 not correctly displayed gray-scale image in JAI unit test

XMLWordPrintable

    • 2d
    • sparc
    • solaris_7

      For a BufferedImage with CS_* color space other than CS_sRGB, when it is displayed with a negative translation, it is converted back to RGB color space and then displayed; if the translation parameters are positive, the image is displayed as it is a RGB image.

      Please see the attached test program.

      when running a TiledImageTest in JAI using jdk 1.3fcs and jdk 1.4, the gray-scale images wasn't correctly displayed.

      Please refer to the attached images:

      test_jdk1.2.2_06_jai1.0.2.tiff: The result of TiledImageTest in JAI 1.0.2 using jdk 1.2.2_06

      test_jdk1.3fcs_jai1.1.tiff: The result image of TiledImageTest in JAI 1.1 using jdk 1.3fcs. Using jdk 1.4, the speed for display is as fast as using jdk 1.2.2 but the image displayed is similar to the result using with jdk 1.3fcs.

      tiled.tiff: the bottom-right corner gray-scale image stored using jai tiff writer when capturing test_jdk1.3fcs_jai1.1.tiff. It different to the same corner image in test_jdk1.3fcs_jai1.1.tiff.

      It seems an operation is done before display. The background color is stretched from 16 to 71.

            tdv Dmitri Trembovetski (Inactive)
            qgao Qinghuai Gao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: