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

Reply via email to