Hi Eric, "Eric Hamacher" <[EMAIL PROTECTED]> wrote on 03/12/2008 03:11:43 PM:
> My application outputs PDFs using Batik (via PrintTranscoder). As I > use my application, the message ?Graphics2D from BufferedImage lacks > BUFFERED_IMAGE hint? keeps appearing on my console in ever > increasing numbers (it now prints about 50 times). I either want to > fix this problem or prevent it from printing. What is this > referring to? Batik needs to know about the destination device in order to render correctly. In theory we should be able to get this information from the Graphics2D but the information was wrong for BufferedImages in a bunch of cases. So we attach a rendering hint to Graphics2D instances that we create from buffered Images that allows us to get the correct information. So someone (perhaps within Batik or within the PDF transcoder) is creating a Graphics2D from a buffered image without providing our rendering hint. The negative effects of this are usually minimal (the fallback behavior is fairly good) but it does mean that in some cases there could be rendering errors.
