I'm from a 3D rendering background where this is trivial to do, but I can't
find how to do this in iText (or Java2D for that matter):
Say I have points A, B and colors cA, cB.
The points are joined together by a curveTo() command. I want the colors to
smoothly interpolate between each point. i.e. point A is color cA, point B
is color cB, and the color of the line between A and B linearly
interpolates between cA and cB.
I've tried stroking with a gradient fill but for my purposes it is far too
slow, and also produces inaccurate results since I am actually joining up
thousands of these curve segments into long continuous curves.
It seems like good 'ole point to point linear color interpolation isn't
supported in either Java2D or iText?
Thanks for any help,
Jarrod
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php