title: Removing transparency in PNG BufferedImage
body: <p>I'm reading a PNG image with the following code:</p>
  
  <pre><code>BufferedImage img = ImageIO.read(new URL(url));
  </code></pre>
  
  <p>Upon displaying it, there is a black background, which I know is caused from PNG transparency.</p>
  
  <p>I found solutions to this problem suggesting the use of <code>BufferedImage.TYPE_INT_RGB</code>, however I am unsure how to apply this to my code above.</p>