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

ScaleTransition and Reflection do not play well together on Image

XMLWordPrintable

      I added a reflection to the sample program found here: http://javafx.com/docs/howto/Zoom-In-Tutorial.jsp

      The result is when the image is scaled to original size, the image looks very blocky when there is a reflection. It is as if the scaled down image is simply scaled up (rather than unscaling the original image).

      The files attached are:

      Main.fx - source demonstrating the problem (uncomment lines 37-42 to see problem)
      zodiac-dog-pic.png (the original image, its used by the sample program)
      with-1.png - screenshot of original state of program with reflection
      with-2.png - screenshot of 2nd state of program with reflection (*** shows the error ***)
      without-1.png - screenshot of original state of program w/o reflection
      without-2.png - screenshot of 2nd state of program w/o reflection

      The effect is the same on Windows XP and on OS X.

      Thanks!

            kcr Kevin Rushforth
            brobertsojfx Bill Robertson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: