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

Image corruption using ReplicateScaleFilter/AreaAveragingScaleFilter

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      05
    • CPU:
      sparc
    • OS:
      solaris_7

      Backports

        Description


        Attached is a test case here which uses primarily ReplicateScaleFiliter()
        and AreaAveragingScaleFilter() to scale and smooth 'Fujitsu' logo. We
        seem to get image corruption at the end of this scaling and smoothing
        process.

        This image corruption happens more often on Solaris than on Windows.
        Also on Windows, CPU peaks for couple of minutes whenever there is a
        resize.

        To reproduce the problem,

        -Run java -jar corrupt.jar
        Wait till you see the smooth image.
        Resize (vertically ).
        Initially you will see the logo with jagged edges and after sometime the
        image gets smooth. If there is any image corruption you would see it
        now.


        Note: Only the top portion ( infinity logo ) takes part in the
        scaling/smoothing. The bottom portion of the image ( the line and the
        text ) does not participate in scaling/smoothing.

        Source and class files are in the jar 'corrupt.jar'.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                tdv Dmitri Trembovetski (Inactive)
                Reporter:
                rramchansunw Rajesh Ramchandani (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: