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

Setting subsampling alters the Image colors for INT_BGR when encoded with BMP writer

XMLWordPrintable

      I am encoding a TYPE_INT_BGR image using BMP Writer with all the compression types supported. I have set the SourceSubsampling value to 3,3,0,0. When encoding with BI_RGB or BI_BITFIELDS compression types, some of the colors in the image are altered completely. This is incorrect. Setting subsampling should never alter the colors in the image.

      This is reproducible only for BMP, only with the above compression types on all platforms. This is reproducible since Tiger.

      I have attached a sample test and the image. I have also attached the screenshot of the output.
      ###@###.### 2005-07-20 07:19:35 GMT

            bae Andrew Brygin
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: