title: JavaFX - css adding background image with transparency
body: <p>I want to add an image (png) this way:</p>
  
  <pre><code>#leftCorner {
    -fx-background-image: url("images/backgroundTrain2.png");
    -fx-background-repeat: stretch;
    -fx-background-size: 150.0 71.0;
    -fx-background-position: center center;
  }
  </code></pre>
  
  <p>the problem is that I loose the transparency of the white part of the image.
  Can somebody tell me what I can do that it stays transparent?</p>
  
  <p><img src="https://i.stack.imgur.com/lJrrg.png" alt="enter image description here"></p>
  
  <p>thats the picture i try to add as background</p>