Thank you. I'll include the patch in the next release. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Chris Nokleberg > Sent: Thursday, January 27, 2005 8:31 AM > To: [email protected] > Subject: [iText-questions] Patch to make PdfGraphics2D use > TexturePaint anchor location > > Hello, > > PdfGraphics2D currently ignores the x/y coordinates of the > TexturePaint > anchor rectangle. The following patch against CVS fixes the bug. > > Thanks, > Chris > > > *** PdfGraphics2D.java.~1.35.~ Wed Jan 26 23:10:52 2005 > --- PdfGraphics2D.java Thu Jan 27 00:23:26 2005 > *************** > *** 1348,1353 **** > --- 1348,1354 ---- > com.lowagie.text.Image image = > com.lowagie.text.Image.getInstance(img, null); > PdfPatternPainter pattern = > cb.createPattern(image.width(), image.height()); > AffineTransform inverse = this.normalizeMatrix(); > + inverse.translate(rect.getX(), rect.getY()); > inverse.scale(rect.getWidth() / > image.width(), -rect.getHeight() / image.height()); > double[] mx = new double[6]; > inverse.getMatrix(mx); > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive > Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions >
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
