title: How to get the dpi of an image(Java)
body: <p>In c#, we can use Image.HorizontalResolution and Image.VerticalResolution.</p>
  
  <p>But in java, how to get it? </p>
  
  <p>I found <code>ImageInfo.java</code>, but it only support a few image types.</p>
  
  <p><a href="http://kickjava.com/src/imageinfo/ImageInfo.java.htm" rel="noreferrer">http://kickjava.com/src/imageinfo/ImageInfo.java.htm</a></p>