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

BMP Writer handles TopDown property incorrectly for some of the compression types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: e6u10, 5.0, 6u21, 6u30, 6u31, 6u32
    • Fix Version/s: 7
    • Component/s: client-libs
    • Subcomponent:
    • Resolved In Build:
      b63
    • CPU:
      generic, x86, arm
    • OS:
      generic, linux, solaris_11, windows_vista, windows_7

      Description

      I am setting the TopDown property to true in BMPWriteParam by calling setTopDown(true). I am getting all the supported compression types and looping through them one by one and setting it to the write param. I am writing the image using each of these compression types, with topdown true using BMPImageWriter.

      I noticed that the image is actually inverted for some of the compression types such BI_RGB and BI_BITFIELDS whereas it is normal for other compression types such as BI_JPG and BI_PNG. The spec does not say anything about the dependency of TopDown on compression. I feel the behavior of TopDown must be same regardless of what compression types are used.

      This is reproducible on all platforms right from Tiger-FCS.

      I have attached a sample test that would demonstrate this bug.
      ###@###.### 2005-07-14 14:20:11 GMT

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: