Invokation of Graphics2D.drawImage() method thus;

g2.drawImage(myImage,null,null);

draws myImage on the screen at 0,0 (in g2's coordinate space)
However PdfGraphics2D doesn't honour this usage.

(see line 1381 of PdfGraphics2D.java in the 2.0.6 release)

I modified this method to the following

    private boolean drawImage(Image img, Image mask, AffineTransform xform, 
                        Color bgColor, ImageObserver obs) {
        if (xform==null)
            xform = new AffineTransform();

and it works fine now.

Could this fix be contributed to the next release ?

Phil Cope        
-- 
All opinions expressed in this message are purely personal and do not 
reflect the opinions or policies of GE or GE Smallworld

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to