Hi

I am trying to create pdf's with transparency created with the following 
code:

Graphics2D result = (Graphics2D)graphics.create();
AlphaComposite composite = 
alphaComposite.getInstance(AlphaComposite.SRC_OVER, 
model.getTransparency());
result.setComposite(composite);

where model.getTransparency() returns a float between 0.0 and 1.0.
and I then use the result to draw to the pdf.

This fails, it only draws solid colours.

Is there a simple fix?  Or is the whole approach not supported?

Jim Rootham



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to