I'm running into a problem using Gradient Paint in a custom component. When the component is displayed on the screen, all is fine. When it's painted to a PdfGraphics2D instance, some of the Gradient Paint shows up, and some of it doesn't - it appears solid green. It looks like the Gradient Paint's "cycle" atribute isn't working in the PDF Graphics?

A search of the archives turned up a similar post, but no solution
http://sourceforge.net/mailarchive/message.php?msg_id=12532094

I've attached a sample program, and at line 138 if yuo change the 'true' to 'false', then the screen and the PDF will match up. How do I get my GraidentPaint to 'cycle' like it does in Swing?

Any ideas?  Thanks!
  --Ben



Attachment: p.java
Description: Binary data

-------------------------------------------------------------------------
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

Reply via email to