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

Mobile: 'opacity' attribute do not work for ImageView

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx1.0
    • Fix Version/s: fx1.1
    • Component/s: javafx
    • Environment:

      JavaFX 1.0.1, emulator running on WinXP, 6u10 b33

      Description

      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
          }
      }

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: