Alchemy wrote: > Thanks for the prompt reply. > > On 2009/04/04, at 20:40, 1T3XT info wrote: > >> Alchemy wrote: >>> When drawing to Java Graphics2D It seems like iText does not support >>> GradientPaint gradients with transparency? >> You're right, I don't think that's supported. > > I had a look at the relevant iText code and lucky for me I managed to > get it going by only changing one line :) > I'm using only RGB at this point so I changed > com.lowagie.text.pdf.PdfShading line 145 to also return the alpha value. > The full function is below and the new and improved PDF output from my > previous example is here: > http://al.chemy.org/misc/graphics2D-2.pdf > Beautiful isn't it!
As far as I can see, the change breaks other examples... -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php