Bug (and solution) in PdfGraphics2D.drawImage() 2007-11-07 - By Paulo Soares
Back The change is in the SVN.
Paulo
> -- --Original Message-- -- > From: itext-questions-bounces@(protected) > [mailto:itext-questions-bounces@(protected)] On > Behalf Of Phil Cope > Sent: Tuesday, November 06, 2007 5:22 PM > To: itext-questions@(protected) > Subject: [iText-questions] Bug (and solution) in > PdfGraphics2D.drawImage() > > 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
Aviso Legal: Esta mensagem ? destinada exclusivamente ao destinat?rio. Pode conter informa? ?o confidencial ou legalmente protegida. A incorrecta transmiss?o desta mensagem n?o significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. ? proibido a qualquer pessoa que n?o o destinat?rio de usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- 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 iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|