title: Add java.awt.Image to itext directly
body: <p>I was wondering if you could add a java.awt.Image to itext directly; all the responses to this question I've seen so far suggest to write the image to disk</p>
  
  <pre><code>   ImageIO.write(img, "png", "output.png);
  </code></pre>
  
  <p>Then fetch it using the com.itextpdf.text.Image method <code>Image.getInstance()</code></p>
  
  <pre><code>   Image iTextImage = Image.getInstance("output.png");
  </code></pre>
  
  <p>This solution works but is not quite elegant. Is there any way to do this better?</p>