Send me the full file with the fix.

----- Original Message ----- 
From: "Jan von Bargen" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, September 24, 2005 2:41 PM
Subject: [iText-questions] Problems with TexturePaint


> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to