Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] Problems with TexturePaint

Jan von Bargen

2005-09-24

Replies:

Hi everyone

I figured out a little problem while using a TexturePaint-object with a
PdfGraphics2D-instance. It seems to occur if you first draw something
invisible (Graphics2D.setPaint(new Color(0,0,0,0)) for example) and then
draw with a TexturePaint. If you do so nothing visible is painted. Only
if you insert another drawXXX with a visible color it works as it should.

I spent some time looking for a bug, and it seems to me that the
"transparency status" (sorry, I don't know the pdf internals) is not
reverted, so for me an additional

          PdfGState gs = fillGState[255];
          if (gs == null) {
            gs = new PdfGState();
            gs.setFillOpacity(1);
            fillGState[255] = gs;
          }
          cb.setGState(gs);

[PdfGraphics2D.java, ~ line 1358]

worked well. Hope that helps ?! (Any reply would be nice ...)

Regards,

Jan



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.