@@ -264,7 +264,7 @@ public class DecoratorController {
|
|||||||
private Background createBackgroundWithOpacity(Image image, int opacity) {
|
private Background createBackgroundWithOpacity(Image image, int opacity) {
|
||||||
if (opacity <= 0) {
|
if (opacity <= 0) {
|
||||||
return new Background(new BackgroundFill(new Color(1, 1, 1, 0), CornerRadii.EMPTY, Insets.EMPTY));
|
return new Background(new BackgroundFill(new Color(1, 1, 1, 0), CornerRadii.EMPTY, Insets.EMPTY));
|
||||||
} else if (opacity >= 100) {
|
} else if (opacity >= 100 || image.getPixelReader() == null) {
|
||||||
return new Background(new BackgroundImage(
|
return new Background(new BackgroundImage(
|
||||||
image,
|
image,
|
||||||
BackgroundRepeat.NO_REPEAT,
|
BackgroundRepeat.NO_REPEAT,
|
||||||
|
|||||||
Reference in New Issue
Block a user