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

ImageInputEffect is not getting updated when its source WritableImage is updated

    XMLWordPrintable

Details

    Description

      Set the effect as following:

          private WritableImage image = new WritableImage(1000, 1000);
          private ImageInput imageInput = new ImageInput(image);
              node.setEffect(imageInput);

      Then update the image using PixelWriter for example in respond to mouse events:

                  PixelWriter pixelWriter = image.getPixelWriter();

                  pixelWriter.setColor(x, y, Color.BLACK);

      Effect is not being updated.

      To update effect you need to null its source and update it to the image again.

      Attachments

        1. Bug.java
          2 kB
        2. Test.java
          2 kB

        Activity

          People

            flar Jim Graham
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: