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

Mobile: 'opacity' attribute do not work for ImageView

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx1.1
    • fx1.0
    • javafx
    • JavaFX 1.0.1, emulator running on WinXP, 6u10 b33

      Changing the 'opacity' value do not have any effect on ImageView when run on emulator. This works well on desktop.

      To reproduce, run the below code on emulator. Click on the ImageView to reduce the opacity value. If opacity of the Image do not change, bug is reproduced.

      import javafx.scene.*;
      import javafx.stage.*;
      import javafx.scene.image.*;
      import javafx.scene.input.*;

      var opacity: Number = 1.0;
      var imageView: ImageView = ImageView {
          x: 40
          y: 40
          opacity: bind opacity
          image: Image {
              url: "http://cldc.russia.sun.com/monty/html/JFXGraphics/res/DUKE.PNG"
          }
          onMouseClicked: function(e: MouseEvent) {
              opacity = opacity - 0.1;
          }
      };
      Stage {
          scene: Scene {
              content: imageView
          }
      }

            ailjin Artem Iljin (Inactive)
            gramachasunw Girish Ramachandran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: