-
Bug
-
Resolution: Fixed
-
P4
-
fx1.0
-
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
}
}
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
}
}