  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Subject: Re: Bug (and solution) in PdfGraphics2D.drawImage( | Subject: Re: Bug (and solution) in PdfGraphics2D.drawImage( 2007-11-06 - By Mark Storer
Back Good catch.
One minor tweak... PdfGraphics2D declares (on line 119 in the current SVN over here<http://itext.svn.sourceforge.net/viewvc/itext/trunk/src/com/lowagie /text/pdf/PdfGraphics2D.java?view=markup>):
private static final AffineTransform IDENTITY = new AffineTransform();
And your prize? Your very own link to one of several versions of Jonathan Coulton's creative commons song "Code Monkey" on YouTube<http://youtube.com/watch?v=j4TnhemCEmc> .
{ err, and in case those html links get eaten: svn: http://itext.svn.sourceforge.net/viewvc/itext/trunk/src/com/lowagie/text/pdf /PdfGraphics2D.java?view=markup code monkey: http://youtube.com/watch?v=j4TnhemCEmc }
--Mark Storer Professional Geek
On 11/6/07, Phil Cope <phil1.cope@(protected)> wrote: (choppity chop chop)
>
> private boolean drawImage(Image img, Image mask, AffineTransform > xform, > Color bgColor, ImageObserver obs) { > if (xform==null) > xform = new AffineTransform(); > > Phil Cope
(chop)
Good catch.<br><br>One minor tweak... PdfGraphics2D declares (on line 119 in the current SVN over <a href="http://itext.svn.sourceforge.net/viewvc/itext /trunk/src/com/lowagie/text/pdf/PdfGraphics2D.java?view=markup">here</a> ): <br><pre><span class="kwa"> private static final</span> <span class="kwc" >AffineTransform</span> IDENTITY <span class="sym">=</span> <span class="kwa" >new</span> <span class="kwc">AffineTransform</span><span class="sym"> ();</span></pre><br>And your prize? Your very own link to one of several versions of <a href="http://youtube.com/watch?v=j4TnhemCEmc">Jonathan Coulton& #39;s creative commons song "Code Monkey" on YouTube</a>.<br> <br> { <br> err, and in case those html links get eaten:<br> svn: <a href="http://itext.svn.sourceforge.net/viewvc/itext/trunk /src/com/lowagie/text/pdf/PdfGraphics2D.java?view=markup">http://itext.svn .sourceforge.net/viewvc/itext/trunk/src/com/lowagie/text/pdf/PdfGraphics2D.java ?view=markup </a><br> code monkey: <a href="http://youtube.com/watch?v=j4TnhemCEmc" >http://youtube.com/watch?v=j4TnhemCEmc</a> <br> }<br><br>--Mark Storer<br> Professional Geek<br><br><div><span class="gmail_quote">On 11 /6/07, <b class="gmail_sendername"> Phil Cope</b> <<a href="mailto:phil1.cope@(protected)">phil1.cope@(protected)</a>> wrote:<br>(choppity chop chop)<br></span><blockquote class="gmail_quote" style= "border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding -left: 1ex;"> </blockquote><div> <br></div><blockquote class="gmail_quote" style="border -left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> private boolean drawImage(Image img, Image mask, AffineTransform xform, <br> Color bgColor, ImageObserver obs) {<br> if (xform==null)<br> xform = new AffineTransform();<br><br>Phil Cope</blockquote> <div><br>(chop) <br></div><br></div><br>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- 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/
|
|
 |