title: Create a BufferedImage from file and make it TYPE_INT_ARGB
body: <p>I have a PNG file with transparency that is loaded and stored in a <code>BufferedImage</code>. I need this <code>BufferedImage</code> to be of <code>TYPE_INT_ARGB</code>. However, when I use <code>getType()</code> the returned value is 0 (<code>TYPE_CUSTOM</code>) instead of 2 (<code>TYPE_INT_ARGB</code>).</p>
  
  <p>This is how I load the <code>.png</code>:</p>
  
  <pre><code>public File img = new File("imagen.png");
  
  public BufferedImage buffImg = 
      new BufferedImage(240, 240, BufferedImage.TYPE_INT_ARGB);
  
  try { 
      buffImg = ImageIO.read(img ); 
  } 
  catch (IOException e) { }
  
  System.out.Println(buffImg.getType()); //Prints 0 instead of 2
  </code></pre>
  
  <p>How can I load the .png, save in the <code>BufferedImage</code> and make it <code>TYPE_INT_ARGB</code>?</p>