< prev index next >

modules/graphics/src/main/java/com/sun/javafx/sg/prism/NGRegion.java

Print this page

        

@@ -712,11 +712,11 @@
         // of BackgroundImage, and the "image" property itself, have any impact
         // on how the image is applied to a Shape.
         final List<BackgroundImage> images = background.getImages();
         for (int i = 0, max = images.size(); i < max; i++) {
             final BackgroundImage image = images.get(i);
-            final Image prismImage = (Image) image.getImage().impl_getPlatformImage();
+            final Image prismImage = (Image) Toolkit.getImageAccessor().getPlatformImage(image.getImage());
             if (prismImage == null) {
                 // The prismImage might be null if the Image has not completed loading.
                 // In that case, we simply must skip rendering of that layer this
                 // time around.
                 continue;

@@ -849,11 +849,11 @@
         }
 
         final List<BackgroundImage> images = background.getImages();
         for (int i = 0, max = images.size(); i < max; i++) {
             final BackgroundImage image = images.get(i);
-            Image prismImage = (Image) image.getImage().impl_getPlatformImage();
+            Image prismImage = (Image) Toolkit.getImageAccessor().getPlatformImage(image.getImage());
             if (prismImage == null) {
                 // The prismImage might be null if the Image has not completed loading.
                 // In that case, we simply must skip rendering of that layer this
                 // time around.
                 continue;

@@ -1312,11 +1312,11 @@
             }
         }
 
         for (int i = 0, max = images.size(); i < max; i++) {
             final BorderImage ib = images.get(i);
-            final Image prismImage = (Image) ib.getImage().impl_getPlatformImage();
+            final Image prismImage = (Image) Toolkit.getImageAccessor().getPlatformImage(ib.getImage());
             if (prismImage == null) {
                 // The prismImage might be null if the Image has not completed loading.
                 // In that case, we simply must skip rendering of that layer this
                 // time around.
                 continue;
< prev index next >