title: How to get the Color of a specific pixel of an Image? - Java
body: <p><strong>Is it possible to get the Color of a specific pixel of an</strong> <code>Image</code><strong>?</strong></p>
  
  <p>I know how to get it from a <code>BufferedImage</code>:</p>
  
  <pre><code>Color color = new Color(bufferedImage.getRGB(x, y));
  </code></pre>
  
  <p><em>But that doesn't work with a</em> <code>java.awt.Image</code> <em>that looks for example like this:</em></p>
  
  <pre><code>Image image = null;
  try {
      image = ImageIO.read(new File("image.png"));
  } catch (IOException e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>Is there a way of doing it? Thanks in advance!</p>