title: How to determine bufferedimage color type in java
body: <p>I need a way to determine the type of this <code>BufferedImage</code> in java  <code>(Binary, Gray, 24 bit color, 8 bit color)</code> ? </p>
  
  <p>It is something like <code>BufferedImage.getType()</code> method ,that returns an integer that determines that ,but I need a way to handle that. And if there is an Algorithm that detects it like the color is  grey if red=green=blue and so on. I will be thankful if you tell me about it </p>
  
  <p>All regards </p>