title: How can i find out where a BufferedImage has Alpha in Java?
body: <p>I've got a BuferredImage and a boolean[][] array.
  I want to set the array to true where the image is completely transparant.</p>
  
  <p>Something like:</p>
  
  <pre><code>for(int x = 0; x &lt; width; x++) {
      for(int y = 0; y &lt; height; y++) {
          alphaArray[x][y] = bufferedImage.getAlpha(x, y) == 0;
      }
  }
  </code></pre>
  
  <p>But the getAlpha(x, y) method does not exist, and I did not find anything else I can use.
  There is a getRGB(x, y) method, but I'm not sure if it contains the alpha value or how to extract it.</p>
  
  <p>Can anyone help me?
  Thank you!</p>