title: How to set DPI information in an image?
body: <p>I have an application that I want to export high-resolution (or rather, high pixel density?) images for printing - for example, I want images that print at 250 dots per inch (DPI), instead of the default, which I understand to be 72 DPI.</p>
  
  <p>I'm using a BufferedImage with a Graphics2D object to draw the image, then ImageIO.write() to save the image.</p>
  
  <p>Any idea how I can set the DPI?</p>