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

Output img looks distorted when writing USHORT_555_RGB using BMPWriter with BI_BITFIELDS compression

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0
    • client-libs

      I am writing a buffered image of type USHORT_555_RGB to a file using BMP Writer. I have set the compression type to BI_BITFILEDS. Once the image is written, I am reading back the same image using BMP ImageReader. The image looks completely distorted. I tried opening the output image using some native apps and the image looks the same. I have attached a screenshot of the image.

      This is reproducible since Tiger-FCS on all platforms.

      I have attached a sample test. Execute the sample test. Check the third image that is getting loaded. It will be distorted.
      ###@###.### 2005-07-08 13:42:30 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: