Hi,
Thanks for that, i think i have figured out the issue...
The two following blocks of code, although they seem like they should act
identically to me, don't. 

This works as expected (with the extra border i don't really need)

_cbr.setShadingFill(axialPattern);
_cbr.rectangle(element.getPositionx(),PageSize.A4.getHeight()-element.getPos
itiony()-element.getHeight(),element.getWidth(),element.getHeight());
_cbr.fillStroke();

However this doesn't (i got no background colour at all)

Rectangle rectangle = new
Rectangle(element.getPositionx(),PageSize.A4.getHeight()-element.getPosition
y(),element.getPositionx()+element.getWidth(),PageSize.A4.getHeight()-elemen
t.getPositiony()-element.getHeight() );
_cbr.setShadingFill(axialPattern);
_cbr.rectangle(rectangle);
_cbr.fillStroke();


Is there a reason why the two of these should be different ? 
The only difference i can see is the required co-ordinate sets required to
get the same result, i.e 
_cbr.rectangle(float,float,float,float) required x,y and width, height 
While
_cbr.rectangle(rectangle) uses   x0,y0,x1,y1

Is there a difference ? Really i don't care which one i use, however i nede
to be able to remove the big black border from the rectangle in the first
example.

Thanks again for all your help, it is much appreciated !

Regards
Damian





-----Original Message-----
From: 1T3XT info [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 7 December 2008 11:56 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Gradient Background Behind ColumnText

Damian Nave wrote:
> Any help would be appreciated

I'd start by using saveState() and restoreState() as advised in the 
book. As documented, the fill color is used as text color (the color 
used to fill the glyph shapes).
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

----------------------------------------------------------------------------
--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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

Reply via email to