Hey Bruno & Co

I've encountered an NPE in the PdfGraphics2D drawImage method (line 222 in my sources, the latest released source -- 1.3). The problem is that the method requires a BufferedImageOp, whereas the Sun Graphics2D implementation does not.

I propose:

public void drawImage(BufferedImage img, BufferedImageOp op, int x, int y) {
       BufferedImage result = img;
       if (op != null) {
           result = op.createCompatibleDestImage(img, img.getColorModel());
           result = op.filter(img, result);
       }
       drawImage(result, x, y, null);
   }


Thanks
Richard




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to